Commit graph

14851 commits

Author SHA1 Message Date
kobewi
0b877a9962 Expose is_part_of_edited_scene() 2024-04-26 11:49:38 +02:00
Magian
e3a7c751f2 Implement tooltips for shader uniform in the inspector.
using regular expressions
2024-04-26 17:48:11 +08:00
Rémi Verschelde
86bf8354a0
Merge pull request #91198 from jsjtxietian/SurfaceTool
Fix `SurfaceTool.create_from_arrays` crash with bad index
2024-04-26 11:09:08 +02:00
Rémi Verschelde
f55b81be1e
Merge pull request #91193 from timothyqiu/tab-icon-size
Allow setting max icon width per tab for TabContainer
2024-04-26 11:09:05 +02:00
Rémi Verschelde
0a6335924a
Merge pull request #91031 from Malcolmnixon/old-body-tracker-signals
Subscribe to correct tracker signals
2024-04-26 11:08:35 +02:00
Rémi Verschelde
a37db390e0
Merge pull request #90229 from Santoss1809/master
Fix error message when removing only child from GraphNode
2024-04-26 11:08:25 +02:00
João Santos
eb9e193477
Fix error message when removing only child from GraphNode
Fixes #89695.
2024-04-26 10:45:45 +02:00
Michael Alexsander
1c32fa2f40
Fix TabContainer regressions related to switching tabs in certain cases 2024-04-26 03:07:21 -03:00
jsjtxietian
01135bc533 Fix SurfaceTool.create_from_arrays crash with bad index 2024-04-26 11:44:15 +08:00
Haoyu Qiu
779426b2fa Allow setting icon max width for TabContainer 2024-04-26 08:27:27 +08:00
kit
d9b0561601 Don't use vscroll when fit to content height in TextEdit 2024-04-25 19:19:08 -04:00
Markus Stephanides
c14b395c78
Add no-change check to Label3D 2024-04-25 22:13:20 +02:00
Koyper
4c5a904faf [PopupMenu] Fix incorrect vertical scroll bar visible at fractional content scale 2024-04-25 09:33:36 -05:00
Rémi Verschelde
50a38cd1c2
Merge pull request #91137 from ckaiser/fix-minimap-lightmode
Use TextEdit caret color for minimap highlight (fix minimap regression)
2024-04-25 12:11:28 +02:00
Rémi Verschelde
ab2daa2923
Merge pull request #91095 from timothyqiu/min-tree
Fix Tree minimum size calculation
2024-04-25 12:11:23 +02:00
Rémi Verschelde
81aa139e0d
Merge pull request #91083 from nagidev/master
Fix port cache calculation in GraphNode
2024-04-25 12:11:20 +02:00
Rémi Verschelde
f819c77d27
Merge pull request #90915 from rburing/no_more_speedrun
Fix `move_and_slide` wall slide acceleration (3D)
2024-04-25 12:11:13 +02:00
Haoyu Qiu
4f4e8589df Fix Tree minimum size calculation
- Take scroll bar space and column title buttons into account
- Fix first column min size sometimes missing one level of indent
- Fix cell min size ignoring text overrun behavior and item inner margin
- Update min size when `hide_root` or `column_title_visible` changes

Wrong description of `item_inner_margin_*` constants is also fixed
2024-04-25 16:00:45 +08:00
Christian Kaiser
91fff47fdc Use TextEdit caret color for minimap highlight 2024-04-25 04:27:49 -03:00
nagidev
b0cafc1077 Fixed port cache calculation in GraphNode 2024-04-24 13:33:38 +05:30
Rémi Verschelde
6149359dac
Merge pull request #91076 from Bn-Fang/master
Fix typo in Camera2D node's anchor mode
2024-04-24 09:59:48 +02:00
Rémi Verschelde
17d9c52ad9
Merge pull request #90894 from lyuma/animation_step_30
Set animation step from importers. Increase default step from 10 to 30FPS
2024-04-24 09:59:21 +02:00
Rémi Verschelde
6f21267a46
Merge pull request #85880 from Rudolph-B/GPU-particles-2D-spread-issue
Fixed particle spread values affecting particle velocity
2024-04-24 09:59:04 +02:00
johnsonbaugh
e2995d3b88 Reset state of SkeletonModification2D when loaded from cache 2024-04-23 21:29:59 -07:00
johnsonbaugh
ef8acbde9a Fix errors and warnings when loading Skeleton2D Modifications
Fixes #73247
2024-04-23 20:42:23 -07:00
Bn-Fang
5d0a229a58 Fixed Typo in Camera 2D node's anchor mode
Fixed the Camera 2D node's anchor mode descriptor from "Fixed TopLeft" to "Fixed Top Left"
2024-04-23 16:24:45 -04:00
Rémi Verschelde
a3b9344a37
Merge pull request #91044 from timothyqiu/column-title
Fix wrong Tree column title position
2024-04-23 19:12:08 +02:00
Rémi Verschelde
d7abefd0a3
Merge pull request #91038 from timothyqiu/tab-container-toggle-icon-text
Fix TabContainer using wrong content rect after tab title update
2024-04-23 19:12:03 +02:00
Rémi Verschelde
ff9d78c141
Merge pull request #90889 from timothyqiu/compat
Use compatible text resource format when possible
2024-04-23 19:11:46 +02:00
Rémi Verschelde
2463e42ea1
Merge pull request #90786 from m4rr5/fix_flipped_line2d_joints
Fix `Line2D` joints with `joint_mode` set to Round rendered "flipped" for a 180 degree angle.
2024-04-23 19:11:22 +02:00
Haoyu Qiu
98d7d62350 Fix wrong Tree column title position 2024-04-23 15:46:19 +08:00
Mansur Isaev
b37ddfc606 Add tab tooltip text 2024-04-23 08:28:48 +04:00
Haoyu Qiu
941e5c4820 Use compatible text resource format when possible 2024-04-23 12:04:44 +08:00
Haoyu Qiu
91918e8cb7 Fix TabContainer not updating content rect after changing tab title 2024-04-23 09:48:59 +08:00
Malcolm Nixon
00f3dd0337 Subscribe to correct tracker signals 2024-04-22 18:40:18 -04:00
Rémi Verschelde
7abe0c6014
Merge pull request #90988 from TheSofox/scrolling-signal-fix
Enable `Scrolling` signal when scrolling with middle mouse on `RichTextLabel` or `ScrollContainer`
2024-04-22 22:38:04 +02:00
Rémi Verschelde
98cce21e78
Merge pull request #90921 from smix8/navmesh_bake_warn
Warn that navigation mesh baking from Meshes is bad for runtime performance
2024-04-22 22:18:30 +02:00
Sofox
30356a488f Enabled 'Scrolling' signal when scrolling with middle mouse on RichTextLabel/ScrollContainer 2024-04-22 20:44:03 +01:00
Rémi Verschelde
7529c0bec5
Merge pull request #90994 from aaronp64/tileset_compressed_image
Handle compressed images in `TileSetAtlasSource::_create_padded_image_texture`
2024-04-22 12:53:51 +02:00
Rémi Verschelde
4e391ea81e
Merge pull request #90942 from timothyqiu/toggle-tab-icon
Fix TabContainer not redrawing after toggling tab icon
2024-04-22 12:53:39 +02:00
Rémi Verschelde
bfca90acb7
Merge pull request #90935 from smix8/navdata_append
Add NavigationMeshSourceGeometryData append functions
2024-04-22 12:53:32 +02:00
Rémi Verschelde
659cf339bc
Merge pull request #90931 from aaronfranke/is-ascii-alphabet-char
Rename internal `is_ascii_char` to `is_ascii_alphabet_char`
2024-04-22 12:53:28 +02:00
Rémi Verschelde
7599be9437
Merge pull request #90907 from KoBeWi/null_tile_exception
Don't store TileMapLayer data if empty
2024-04-22 12:53:21 +02:00
Rémi Verschelde
f0db317ea4
Merge pull request #90869 from KoBeWi/babe_wake_up,_new_color_space_just_dropped
Don't translate ColorPicker color labels
2024-04-22 12:53:17 +02:00
Rémi Verschelde
9498753cc4
Merge pull request #90839 from timothyqiu/tree-button
Fix TreeItem button handling
2024-04-22 12:53:09 +02:00
Rémi Verschelde
ab57e8d5a3
Merge pull request #90834 from lyuma/surfacetool_create_from_arrays
Expose `create_from_arrays` in SurfaceTool and cleanup some naming
2024-04-22 12:53:05 +02:00
Rémi Verschelde
bffaa98b13
Merge pull request #90645 from Malcolmnixon/unified-xr-trackers
Rework XR Trackers to have a common ancestor
2024-04-22 12:52:07 +02:00
Rémi Verschelde
f2ee46b3f3
Merge pull request #90518 from bruvzg/rtl_new_delete
[RTL] Rewrite `remove_paragraph` code.
2024-04-22 12:51:59 +02:00
Rémi Verschelde
79557e7d0b
Merge pull request #76725 from smix8/meshbake_blendshapemix_4.x
Add option to bake a mesh from blend shape mix
2024-04-22 12:51:29 +02:00
smix8
b9225f67c8 Warn that navigation mesh baking from Meshes is bad for runtime performance
Warns that navigation mesh baking from Meshes is bad for runtime performance.
2024-04-22 12:49:47 +02:00
bruvzg
0adb55423d
[RTL] Rewrite remove_paragraph code. 2024-04-22 10:32:24 +03:00
aaronp64
ff60f7b6d4 Handle compressed images in TileSetAtlasSource::_create_padded_image_texture
Check for compressed image and decompress if needed

Fixes #78755
2024-04-21 21:36:12 -04:00
smix8
2594c57361 Add NavigationMeshSourceGeometryData append functions
Adds append functions to NavigationMeshSourceGeometryData.
2024-04-21 04:57:05 +02:00
Haoyu Qiu
fd14ba34d1 Fix TabContainer not redrawing after toggling tab icon 2024-04-20 21:08:46 +08:00
Aaron Franke
b1f5e9fe3a
Rename internal is_ascii_char to is_ascii_alphabet_char 2024-04-20 02:36:41 -07:00
Lyuma
a99756a07f Expose create_from_arrays in SurfaceTool and cleanup some naming 2024-04-19 18:45:06 -07:00
Ricardo Buring
80c600d86b Fix move_and_slide wall slide acceleration (3D)
When travel is high enough, keep the global position resulting from the
move_and_collide call, and set the motion to the remainder from the
move_and_collide call. This ensures travel is taken into account once,
rather than twice.
2024-04-19 19:40:01 +02:00
kobewi
c7b6cf9f6d Don't store TileMapLayer data if empty 2024-04-19 18:05:48 +02:00
Rémi Verschelde
626c6a0ff8
Merge pull request #90874 from Zylann/fix_graph_frame_crash
Fix crash when GraphFrame `sb_to_draw_panel` is not a StyleBoxFlat
2024-04-19 16:28:24 +02:00
Rémi Verschelde
e34399cdcb
Merge pull request #90861 from aaronp64/audio_stream_player_nan
Check for NaN in `set_volume_db` functions
2024-04-19 16:28:11 +02:00
Rémi Verschelde
a523532d18
Merge pull request #90852 from timothyqiu/padding-always
Fix buttons offset to the right when dialog is at minsize
2024-04-19 16:27:56 +02:00
Rémi Verschelde
1bd6fe81ea
Merge pull request #89538 from CrayolaEater/feature/custom-aabb-gizmos
Add Gizmo to display 3D custom AABB
2024-04-19 16:27:16 +02:00
Rémi Verschelde
42e6f9a9d8
Merge pull request #76140 from jeronimo-schreyer/add_secondary_light_to_3d_resource_importer
Added secondary light to 3D Advanced Import Settings
2024-04-19 16:26:42 +02:00
Lyuma
bb9674c1b1 Set animation step from importers. Increase default step from 10 to 30 FPS. 2024-04-19 03:02:20 -07:00
Yuri Rubinsky
56d843724e Prevent expanding output port in visual shader expression 2024-04-19 11:49:10 +03:00
Malcolm Nixon
823ae7b3fa Rework XR Trackers to have a common ancestor. Allow creation of XRNode3D to drive node positions and visibility. 2024-04-18 20:04:01 -04:00
Bogdan Inculet
8caa1b8783 Add Gizmo to display 3D custom AABB 2024-04-19 02:31:30 +03:00
Marc Gilleron
f3e6d23405 Fix crash when GraphFrame sb_to_draw_panel is not a StyleBoxFlat 2024-04-18 21:33:02 +01:00
kobewi
9ab3ff04ac Don't translate ColorPicker color labels 2024-04-18 20:26:56 +02:00
aaronp64
58931c073d Check for NaN in set_volume_db functions
Added check in AudioStreamPlayer, AudioStreamPlayer2D, and AudioStreamPlayer3D set_volume_db functions to prevent setting volume to NaN, and give an error.  Using NaN for volume and playing the AudioStreamPlayer could prevent all audio from playing, even from other AudioStreamPlayers.

Fixes #88133
2024-04-18 11:28:57 -04:00
Haoyu Qiu
b2d5a06828 Fix buttons offset to the right when dialog is at minsize 2024-04-18 21:12:34 +08:00
Haoyu Qiu
c78e9c3fbd Fix TreeItem button handling
- Fix incorrect tooltip and `get_button_id_at_position()` when column
  title is visible and when RTL layout is used
- Take `button_margin`, `h_separation`, and `item_margin` into account
2024-04-18 18:51:36 +08:00
Rémi Verschelde
2543d192c3
Merge pull request #90842 from timothyqiu/revert-79792
Revert "Correctly display tooltips for buttons in Tree when they overlap cell content
2024-04-18 12:25:08 +02:00
Rémi Verschelde
a202027efe
Merge pull request #90838 from bruvzg/btn_theme_rounding
[Button] Fix theme elements size rounding errors not keeping sufficient space for the text.
2024-04-18 12:25:05 +02:00
Rémi Verschelde
2d884ba70c
Merge pull request #90797 from Geometror/vsnode-comment-compat
[Compatibility] Add stub for VisualShaderNodeComment
2024-04-18 12:24:50 +02:00
Rémi Verschelde
be9b298317
Merge pull request #90780 from lyuma/skeletonik3d_compat
Add SkeletonIK3D `get`/`set_interpolation` compat from #87888
2024-04-18 12:24:44 +02:00
Rémi Verschelde
6a70a69d1f
Merge pull request #90702 from permelin/fix-lightmap-warnings
LightmapGI: Reduce warnings and increase probe accuracy
2024-04-18 12:24:37 +02:00
Rémi Verschelde
d2ec3714d7
Merge pull request #90584 from BMagnu/fix_global_rotation_matrix
Fix `Node3D.set_global_rotation()` resetting node scale.
2024-04-18 12:24:27 +02:00
Rémi Verschelde
0dfb48e58d
Merge pull request #89693 from Calinou/dialogs-add-button-minimum-size
Add minimum width/height to dialog buttons
2024-04-18 12:24:20 +02:00
Rémi Verschelde
043ca7c63c
Merge pull request #88306 from KoBeWi/PropertyListHelper_will_come_for_you
Add PropertyListHelper in all simple cases
2024-04-18 12:24:17 +02:00
Rémi Verschelde
3a88373a4c
Merge pull request #86553 from Koyper/fix_popup_panel_content_scaling
Fix non-embedded tooltips, popups and dialogs resizing to match Viewport content scale factors != 1.0
2024-04-18 12:24:11 +02:00
Haoyu Qiu
00f0043227 Revert "Correctly display tooltips for buttons in Tree when they overlap cell content"
This reverts commit 8278a5f274.
2024-04-18 17:35:26 +08:00
Lyuma
cb7ef2b8de Add SkeletonIK3D get/set_interpolation compat from #87888 2024-04-18 01:49:12 -07:00
bruvzg
45bde2b5b0
[Button] Fix theme elements size rounding errors not keeping sufficient space for the text. 2024-04-18 11:48:46 +03:00
Hendrik Brucker
735c45dc8e [Compatibility] Add stub for VisualShaderNodeComment 2024-04-18 02:39:29 +02:00
Hugo Locurcio
1e8526659c
Add minimum width/height to dialog buttons
This makes buttons with short texts such as "OK" or "Close"
easier to click, especially on a touchscreen.

This is exposed to projects via `buttons_min_width` and `buttons_min_height`
theme items in AcceptDialog (and therefore ConfirmationDialog and FileDialog),
with the default values being 0 to preserve compatibility with existing projects.
2024-04-17 23:48:05 +02:00
Rémi Verschelde
54ba8d6882
Merge pull request #90810 from Arnklit/particles_processing_ring_shape_emission_axis_fix
Fix shader crash on zero vector and negative x vector in particles processing
2024-04-17 20:26:50 +02:00
Kasper Frandsen
f8d08a8376 fix: avoid shader crash on null vector and negative x vector 2024-04-17 17:33:30 +01:00
Koyper
0881c81c13 Fix non-embedded Windows resizing to match Viewport content scale factor 2024-04-17 09:30:16 -05:00
yds
4077129f9d Fix RayCast3D's debug draw transform not updating 2024-04-17 11:21:53 -03:00
Marcel Offermans
e64b4243c3 Added a specific check for the corner case that went wrong. 2024-04-17 12:01:01 +02:00
Rémi Verschelde
01eb81ba48
Merge pull request #90752 from groud/fix_tilemap_y_sort
Fix TileMap enabling Y-sort on child nodes
2024-04-17 10:59:04 +02:00
Rémi Verschelde
ce0744866d
Merge pull request #90747 from smix8/remove_constrain_avoidance
Remove experimental `constrain_avoidance` from `NavigationRegion2D`
2024-04-17 10:58:55 +02:00
Rémi Verschelde
fad6897af0
Merge pull request #90639 from YeldhamDev/stay_open_please
Fix submenus erroneously closing on some occasions
2024-04-17 10:58:46 +02:00
Jeronimo Schreyer
c3bc768d64
Make Advanced Import lights more like the mesh and material editors
Co-authored-by: Aaron Franke <arnfranke@yahoo.com>
2024-04-16 10:15:25 -07:00
smix8
df66a55ef3 Remove experimental constrain_avoidance from NavigationRegion2D
Removes experimental constrain_avoidance feature from NavigationRegion2D.
2024-04-16 18:02:53 +02:00
Gilles Roudière
96b6199de9 Fix TileMap enabling Y-sort on child nodes 2024-04-16 16:02:55 +02:00
Birk Magnussen
dd97ff44ab
Fixes the issue where setting global rotation would reset scale.
This was caused because the basis for the target global transform was entirely recreated. This process did not account for the scale of the basis of the current global transform.
This PR amends this by scaling the recreated basis for the global transform by the current global scale of the Node3D.
Note that this scaling has to be done from the current global scale and not from the local scale of the Node3D, otherwise issues would arise if parents of this Node3D would be scaled.
2024-04-16 13:43:00 +02:00
Rémi Verschelde
dc8e82b00a
Merge pull request #90730 from timothyqiu/root-auto-translate
Add project setting for root node auto translate mode
2024-04-16 13:31:00 +02:00
Rémi Verschelde
09825bcc1a
Merge pull request #90729 from aaronfranke/move-nav-msgd
Move NavigationMeshSourceGeometryData(2D/3D) to the 2D/3D subfolders
2024-04-16 13:30:57 +02:00