Commit Graph

15028 Commits

Author SHA1 Message Date
Rémi Verschelde 472273f07a
Merge pull request #91326 from aaronp64/line_edit_min_size
Update `LineEdit` to include `read_only` StyleBox in `get_minimum_size()`
2024-05-07 13:48:44 +02:00
Rémi Verschelde 4b070e8031
Fix various typos with codespell
Using 2.2.7.dev217+g10c2abcf.

Had to add `colour` to the ignore list as we used it as an alias/keyword for the
documentation of color-related APIs.
Also ignore recommendations to change `thirdparty` to either `third-party` or
`third party`, which are correct but we use the former fairly consistently.
2024-05-07 10:08:42 +02:00
Rémi Verschelde 107fd30ae7
Merge pull request #91647 from jsjtxietian/fix-uint-hightlight
Make native shader source visualizer highlight uint suffix
2024-05-07 09:04:55 +02:00
Rémi Verschelde e63252b421
Merge pull request #90705 from AThousandShips/foreach_list
Reduce and prevent unnecessary random-access to `List`
2024-05-07 09:04:44 +02:00
Rémi Verschelde 965bae735e
Merge pull request #72323 from Koyper/flow_container_center_wrap_options
Add FlowContainer wrap options for center alignment.
2024-05-07 09:04:34 +02:00
jsjtxietian cff1111359 Make native shader source visualizer can highlight uint suffix 2024-05-07 14:18:48 +08:00
Pedro J. Estébanez 187e5ef258 Let materials' shaders update happen on loader threads 2024-05-06 19:40:00 +02:00
A Thousand Ships 86de59d60a
[Core] Add `LocalVector::has` for convenience 2024-05-06 18:03:37 +02:00
Rémi Verschelde 94b8a1d808
Merge pull request #91495 from TokageItLab/fix-control-saving
Avoid incorrect computing anchor of Control node when reset on save with `saving` flag
2024-05-06 15:15:04 +02:00
Rémi Verschelde 16eb8dbdc0
Merge pull request #89595 from apples/89559-cpuparticles3d-angle-rotate_y-fix
Fix `CPUParticles3D` using angle incorrectly when `ROTATE_Y` is set.
2024-05-06 15:14:53 +02:00
Silc Lizard (Tokage) Renew 57cd00aee9 Avoid incorrect computing anchor of Control node when reset on save 2024-05-05 08:33:37 +09:00
A Thousand Ships 955d5affa8
Reduce and prevent unnecessary random-access to `List`
Random-access access to `List` when iterating is `O(n^2)` (`O(n)` when
accessing a single element)

* Removed subscript operator, in favor of a more explicit `get`
* Added conversion from `Iterator` to `ConstIterator`
* Remade existing operations into other solutions when applicable
2024-05-04 16:08:55 +02:00
Rémi Verschelde 84013a31ea
Merge pull request #91122 from TokageItLab/simulator-memdel
Modify allocation process of the PhysicalBoneSimulator in Skeleton3D
2024-05-04 11:52:22 +02:00
Rémi Verschelde a5d4ddc18a
Merge pull request #90517 from TokageItLab/cache-bones-mod
Static allocation bones copy for SkeletonModifier
2024-05-04 11:52:19 +02:00
Rémi Verschelde a2fc5e2d78
Merge pull request #89894 from BastiaanOlij/improve_foveated_rendering
Improvements to VRS/Foveated rendering
2024-05-04 11:52:15 +02:00
Rémi Verschelde 471ddf4327
Merge pull request #87231 from Calinou/geometryinstance3d-transparency-warn-mobile-compatibility
Show warning for GeometryInstance3D transparency in Mobile/Compatibility
2024-05-04 11:52:06 +02:00
Silc Lizard (Tokage) Renew a22923daf7 Static allocation bones copy for SkeletonModifier
Co-authored-by: SlugFiller <5435495+SlugFiller@users.noreply.github.com>
2024-05-04 11:16:26 +09:00
jsjtxietian b851514b10 Fix uint's suffix is not highlighted in text shader editor 2024-05-03 21:45:53 +08:00
Rémi Verschelde 03e6fbb010
Merge pull request #85474 from fire/packedvector4array
Add `PackedVector4Array` Variant type
2024-05-03 12:25:26 +02:00
Bastiaan Olij 9042ddf19f Improvements to VRS/Foveated rendering 2024-05-03 17:20:30 +10:00
Rémi Verschelde c3a650ac46
Remove unused code to convert text resource format to binary
This is now handled in `ResourceSaver::save` when saving with a binary extension.
2024-05-03 01:14:40 +02:00
K. S. Ernest (iFire) Lee f9b488508c
Add PackedVector4Array Variant type
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2024-05-03 00:58:27 +02:00
Silc Lizard (Tokage) Renew 6fd8b25d38 Add argument options to AnimationPlayer for auto capture 2024-05-03 07:06:37 +09:00
Silc Lizard (Tokage) Renew 4900dddb88 Modify allocation process of the PhysicalBoneSimulator in Skeleton3D 2024-05-03 06:00:10 +09:00
Rémi Verschelde 4e9543d849
Merge pull request #91457 from kitbdev/fix-multicaret-disabled
Fix TextEdit crash with multiple carets disabled and paste
2024-05-02 17:31:47 +02:00
Rémi Verschelde e249df4f5e
Merge pull request #89275 from bruvzg/status_rect
[StatusIndicator] Add method to get indicator icon screen rect.
2024-05-02 17:31:18 +02:00
kit 0162683da4 Fix TextEdit crash with multiple carets disabled 2024-05-02 09:26:08 -04:00
Rémi Verschelde 06d105e268
Merge pull request #91437 from TokageItLab/auto-capture
Add `auto_capture` option to AnimationPlayer
2024-05-02 14:01:25 +02:00
bruvzg e5205e589f
[StatusIndicator] Add method to get indicator icon screen rect. 2024-05-02 14:39:33 +03:00
bruvzg 360d365b33
[RTL] Adds extra argument to `remove_paragraph` to skip cache invalidation and a method for manual cache invalidation. 2024-05-02 14:03:21 +03:00
Silc Lizard (Tokage) Renew 36abb55dd2 Add auto_capture option to AnimationPlayer 2024-05-02 19:57:36 +09:00
Rémi Verschelde b2af040423
Merge pull request #91425 from Sauermann/fix-force-drag-focus-crash
Make `mouse_focus` and `mouse_focus_mask` consistent for force_drag
2024-05-02 12:46:45 +02:00
Rémi Verschelde 098a4e945e
Merge pull request #91188 from YeldhamDev/love_fixing_other_peoples_regressions
Fix `TabContainer` regressions related to switching tabs in certain cases
2024-05-02 12:46:39 +02:00
Rémi Verschelde 9cb3a16a8e
Merge pull request #91014 from DeeJayLSP/qoa-wav-playback
Add QOA (Quite OK Audio) as a WAV compression mode
2024-05-02 12:46:32 +02:00
Rémi Verschelde 0b6c29f2d2
Merge pull request #89114 from AThousandShips/vec_elem_scalar
[Core] Add scalar versions of `Vector*` `min/max/clamp/snap(ped)`
2024-05-02 12:46:22 +02:00
Yaohua Xiong 1f2aa17d14
Extend `CanvasItem::draw_circle()` with filled, width, and antialiased options
Make it possible to draw unfilled circle, like draw_rect(). Antialising is only implemented for unfilled version.
2024-05-02 10:42:24 +02:00
A Thousand Ships 308dbb8c63
[Core] Add scalar versions of `Vector*` `min/max/clamp/snap(ped)`
Convenience for a number of cases operating on single values
2024-05-02 10:31:13 +02:00
Markus Sauermann 30a19a5c2f Make `mouse_focus` and `mouse_focus_mask` consistent for force_drag
In `Viewport::_gui_force_drag` currently `Viewport::gui.mouse_focus`
gets cleared, but `Viewport::gui.mouse_focus_mask` doesn't get cleared.

This is an inconsistency which can cause a crash.

With the change of this PR, `mouse_focus_mask` also gets cleared.
This is in alignment with how regular drag and drop clears both variables.
2024-05-02 00:10:29 +02:00
DeeJayLSP b9cbf2c96f Add QOA (Quite OK Audio) as a WAV compression mode 2024-05-01 19:05:14 -03:00
Markus Sauermann 792b38813f Remove unused variable Viewport::gui.last_mouse_focus
The last use was removed in January 2023
2024-05-01 11:20:40 +02:00
Rémi Verschelde 5a63d1db41
Merge pull request #91223 from Arnklit/particle-cylinder-emission-distribution-fix
Fix particle cylinder emission shape random distribution
2024-05-01 09:55:06 +02:00
Rémi Verschelde f89de7ab43
Merge pull request #90960 from TokageItLab/fix-animation-playback-track-seek
Make seeking animation playback track consider internal seeking
2024-05-01 09:55:00 +02:00
Rémi Verschelde de00cfbc01
Merge pull request #90892 from Chaosus/vs_fix_expression_port_expand
Prevent expanding output port in visual shader expression
2024-05-01 09:54:57 +02:00
Rémi Verschelde 70247adf25
Merge pull request #89734 from BastiaanOlij/openxr_reorder_wait_frame
OpenXR: Change timing of xrWaitFrame and fix XR multithreading issues
2024-05-01 09:54:51 +02:00
Rémi Verschelde 85062e37ef
Merge pull request #89588 from bruvzg/status_ind_menu_direct
[StatusIndicator] Switch API to use Texture2D instead of Image, improve handling on macOS, add method to set native popup menu directly.
2024-05-01 09:54:44 +02:00
Rémi Verschelde e950d7ad36
Merge pull request #85609 from QbieShay/qbe/premul-builtin
Add premult alpha blending to 3D (spatial) shaders
2024-05-01 09:54:41 +02:00
Rémi Verschelde 3cb9e84cde
Merge pull request #85189 from QbieShay/qbe/fix-emission-at-end
Correctly emit sub-emitter's emission at the end
2024-05-01 09:54:38 +02:00
Bastiaan Olij cbab7dc049 OpenXR: Change timing of xrWaitFrame and add thread safety features to OpenXR 2024-05-01 14:24:41 +10:00
QbieShay 41a2b0e83e Added premult alpha blending to 3D (spatial) shaders.
Co-authored-by: jitspoe <jitspoe@yahoo.com>
Co-authored-by: Clay John <claynjohn@gmail.com>
2024-05-01 00:53:29 +02:00
Silc Lizard (Tokage) Renew b346e2a722 Make seeking animation playback track consider internal seeking 2024-05-01 06:39:17 +09:00
Kasper Arnklit Frandsen af22d504da Fix particle cylinder emission shape random distribution 2024-04-30 17:24:58 +01:00
Rémi Verschelde ec73f5631c
Merge pull request #91335 from devloglogan/xr-hand-modifier-update
Store previous relative transforms in `XRHandModifier3D`
2024-04-30 17:03:53 +02:00
Rémi Verschelde ca38212604
Merge pull request #89643 from mnemoli/pickone-fix-89641
Fix mouse events when `physics_object_picking_first_only` enabled
2024-04-30 17:03:10 +02:00
Rémi Verschelde e19b808a7a
Merge pull request #86978 from kitbdev/multicaret-overhaul
Overhaul multicaret editing and selection in TextEdit
2024-04-30 17:03:04 +02:00
devloglogan a35196ba22 Store previous relative transforms in XRHandModifier3D 2024-04-30 08:59:40 -05:00
aaronp64 3337c160a4 Update LineEdit to include read_only StyleBox in get_minimum_size()
Fixes #90522
2024-04-29 14:43:16 -04:00
Koyper e3efd51592 Add FlowContainer wrap options for center alignment. 2024-04-29 08:26:45 -05:00
Rémi Verschelde 5bd9f4dea5
Don't run Shader doc comments logic outside the editor
Fixes #91306.
2024-04-29 14:54:35 +02:00
Rémi Verschelde 77caf02802
Merge pull request #89705 from bruvzg/rtl_draw_steps
[RTL] Move shadow and foreground/background boxes drawing into a separate draw steps.
2024-04-29 13:00:22 +02:00
Rémi Verschelde c1f8d24f18
Merge pull request #91275 from ajreckof/Fix-RichTextLabel-Scroll-Following-randomly-stops-working
Fix RichTextLabel "Scroll Following" randomly stops working.
2024-04-29 10:10:38 +02:00
Rémi Verschelde 164f28e066
Merge pull request #91242 from TokageItLab/player-activating
Make activating on ready in AnimationPlayer respect the property value
2024-04-29 10:10:28 +02:00
Rémi Verschelde 7cd6ea0f7e
Merge pull request #91183 from KoBeWi/small_stuff
Misc code cleanup
2024-04-29 10:09:57 +02:00
Rémi Verschelde ba27c0c31c
Merge pull request #91177 from markusstephanides/master
Add no-change check to `Label3D::set_text`
2024-04-29 10:09:49 +02:00
Rémi Verschelde 9286ac7aa5
Merge pull request #90161 from magian1127/4.0sTip
Implement tooltips for shader uniform in the inspector.
2024-04-29 10:09:35 +02:00
ajreckof 7faafb1448 Fix RichTextLabel "Scroll Following" randomly stops working. 2024-04-28 12:15:14 +02:00
Silc Lizard (Tokage) Renew 470c2f24e9 Make activating on ready in AnimationPlayer respect the property value 2024-04-27 13:06:10 +09:00
kit 773a473807 Overhaul multiple caret editing in TextEdit.
Use a multicaret edit to delay merging overlapping carets until the end.
2024-04-26 14:26:10 -04:00
kit 154f727c7a Overhaul TextEdit selection.
The caret is now a part of the selection.
2024-04-26 14:24:10 -04:00
kobewi 914528180f Misc code cleanup 2024-04-26 15:30:21 +02:00
Rémi Verschelde 1c584ec9e0
Merge pull request #91190 from kitbdev/dont-scroll-if-fit
Don't use vscroll when fit to content height in TextEdit
2024-04-26 15:13:40 +02:00
Rémi Verschelde bd598d5657
Merge pull request #85678 from KoBeWi/editor_walktime
Add separate feature tags for editor runtime
2024-04-26 15:13:16 +02:00
kobewi 3ebb5b84a0 Add separate feature tags for editor runtime 2024-04-26 14:44:38 +02:00
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
Hugo Locurcio b1a2394b3b
Use same colors for editor and running project for collision/path debug
This harmonizes the appearance of collision shapes and paths between
the editor and running project, in both 2D and 3D.

This means that in 3D, paths are now green and shapes are now cyan
instead of light blue.
2024-04-21 00:58:08 +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
Rémi Verschelde ac25b3dd6a
Merge pull request #90438 from TokageItLab/vl-vs-bz
Separate value/bezier track caching process in AnimationMixer
2024-04-16 13:30:44 +02:00
Haoyu Qiu 8d1cb7e74c Add project setting for root node auto translate mode 2024-04-16 11:02:04 +08:00
Aaron Franke 77e35cf781
Move NavigationMeshSourceGeometryData(2D/3D) to the 2D/3D subfolders 2024-04-15 18:40:43 -07:00
Per Melin a990e42207 LightmapGI: Reduce warnings and increase probe accuracy 2024-04-15 18:57:53 +02:00
Rémi Verschelde e1dd1f49c0
Merge pull request #90571 from KoBeWi/you're_too_old,_upgrade_to_newer_format
Improve error when scene/resource is saved with newer format
2024-04-15 13:41:15 +02:00
kobewi 445302a4b2 Improve error when scene/resource is saved with newer format 2024-04-15 12:08:35 +02:00
bruvzg 524a20f460
[RTL] Add support for character code bb tag. 2024-04-15 11:25:50 +03:00
Rémi Verschelde c951421c99
Merge pull request #90268 from RandomShaper/wtp_servers
Use WorkerThreadPool for Server threads (enhanced)
2024-04-15 10:12:00 +02:00
Rémi Verschelde a44b0b6dc1
Merge pull request #90685 from timothyqiu/auto-translate-legacy
Don't store deprecated `auto_translate` property
2024-04-15 10:00:38 +02:00
Rémi Verschelde 4e1ed6bc23
Merge pull request #90668 from timothyqiu/owner-id
Store `ObjectID` instead of pointer for KinematicCollision owner
2024-04-15 10:00:32 +02:00
Rémi Verschelde 88033ea8c6
Merge pull request #90637 from aaronp64/force_native_crash
Fix `Window.hide()` crash when `force_native` changes
2024-04-15 10:00:29 +02:00
Rémi Verschelde 673e770a8d
Merge pull request #90575 from TokageItLab/boneattachment-performance
Remove `bone_pose_updated` signal and replace it with the `skeleton_updated` signal
2024-04-15 10:00:26 +02:00
Rémi Verschelde fac55137a1
Merge pull request #89627 from markdibarry/parallax2d_scroll_scale
Account for scale in scroll logic for `Parallax2D`
2024-04-15 10:00:15 +02:00
Haoyu Qiu 48f1e5b561 Don't store deprecated auto-translate property 2024-04-15 14:23:24 +08:00
Haoyu Qiu 4176102a5e Store ObjectID instead of pointer for KinematicCollision owner 2024-04-15 12:28:36 +08:00
Rémi Verschelde 41fc152232
Merge pull request #90633 from YeldhamDev/the_popup_is_not_wearing_any_panels
Remove `Popup`'s unused "panel" style
2024-04-14 14:39:15 +02:00
Michael Alexsander 7c75355541
Remove `Popup`'s unused "panel" style 2024-04-13 15:18:12 -03:00
Michael Alexsander 978ffb39bf
Fix submenus erroneously closing on some occasions 2024-04-13 15:10:19 -03:00
aaronp64 4ed51933f9 Fix Window.hide() crash when force_native changed
Moved force_native = p_force_native assignment to after is_visible() check, to prevent value from changing after window is shown.

Fixes #90609
2024-04-13 14:03:29 -04:00
Aaron Franke 6dd4a68797
Reorganize some code to have 2D things grouped together 2024-04-13 02:56:50 -07:00
Bernat Arlandis 0a68876348 Remove some unused SceneTree properties 2024-04-13 00:56:01 +02:00
Silc Lizard (Tokage) Renew 78a5ef4158 replace bone_pose_updated to skeleton_updated signal 2024-04-13 05:48:42 +09:00
kobewi e95e954c68 Add PropertyListHelper in all simple cases 2024-04-11 18:13:29 +02:00
smix8 1c134f4a3d Add navigation path simplification
Adds navigation path simplification for NavigationServer and NavigationAgent.
2024-04-11 12:32:21 +02:00
markdibarry 18e8b81ffa Account for scale in scroll logic for Parallax2D 2024-04-10 18:05:05 -04:00
smix8 5d6e8d7dff Add option to bake a mesh from blend shape mix
Adds option to bake a mesh from blend shape mix.
2024-04-10 23:35:28 +02:00
smix8 497afeaf05 Fix NavigationMeshSourceGeometryData merge crash
Fixes crash when trying to merge with a null source geometry.
2024-04-10 21:56:21 +02:00