Commit Graph

7440 Commits

Author SHA1 Message Date
Rafał Mikrut 52e25bc555 Fix exporting big templates
(cherry picked from commit 86fa3ba560)
2022-12-05 10:05:13 +08:00
kleonc 7d2701c08b `SpriteBase3D` Fix drawing AtlasTextures with vertical margins differently than in 2D
(cherry picked from commit 0a64c2eba5)
2022-12-05 09:58:20 +08:00
kleonc a9e897d2c3 Move duplicated drawing code from `Sprite3D`/`AnimatedSprite3D` to `SpriteBase3D`
(cherry picked from commit 0bf2b8e813)
2022-12-05 09:58:15 +08:00
Fredia Huya-Kouadio 26012ed6b6 Fix the logic used to route `InputEventScreenDrag` events to `Control` nodes.
(cherry picked from commit b28bcb4cfc)
2022-12-05 09:47:43 +08:00
bruvzg 84eed3b988 [TextMesh, 3.x] Fix auto-translation and ignore control chars.
(cherry picked from commit efa6b01c97)
2022-12-05 09:40:56 +08:00
Haoyu Qiu 056e99ad6e Fix TreeItem.remove_child not updating Tree immediately
(cherry picked from commit 7bdbfbf822)
2022-12-05 09:39:33 +08:00
Sam Briels 1f50a0b6ca fix: emit target_reached signal after updating state
(cherry picked from commit 3e186ae043)
2022-12-05 09:32:50 +08:00
Haoyu Qiu f29f387d54 Fix error when having BoneAttachment before PhysicalBone
(cherry picked from commit 3acc0779a4)
2022-12-05 09:30:40 +08:00
Haoyu Qiu 485ec0d27c Fix get_path() error when calling get_node()
(cherry picked from commit 5d6dc206bc)
2022-12-05 09:28:43 +08:00
kobewi 422d7fafaa Hide text of RichTextLabel if BBCode is enabled
(cherry picked from commit a0ad958582)
2022-12-05 09:24:34 +08:00
Haoyu Qiu 0fdda75fdc Fix NavigationObstacle not estimating radius
(cherry picked from commit acf86efebc)
2022-12-05 09:18:43 +08:00
Haoyu Qiu f8eed6372c Fix NavigationObstacle not registering to default navigation map
(cherry picked from commit fba5a4ab9a)
2022-12-05 09:18:12 +08:00
smix8 3b9355be3f Fix TileMaps with origin offset placing NavPolygons wrong without a Navigation2D node
The legacy navigation was positioning baked TileMap navpolygons relative to the current Navigation2D node assuming that it is usually one of the parent nodes.

Without the deprecated Navigation2D node the default navigation map of the world_2d is used. This navigation map has no relative Node2D so it needs to use the global_transform of the TileMap to place navregions with the correct offset in case the TileMap is moved from the origin.

(cherry picked from commit 881e49c375)
2022-09-22 20:37:48 +02:00
kobewi fdf76bbcef Fix crash when playing Tween right after finishing
(cherry picked from commit 1a462bc84e)
2022-09-20 10:28:14 +02:00
lawnjelly 0546d268a1 CPUParticles initialize data on set_amount
Fills particle data with zeroes on resize using set_amount(), to prevent garbage data including Nans being sent to VisualServer, which can corrupt the spatial partitioning.

(cherry picked from commit fdd82f4754)
2022-09-20 10:24:56 +02:00
lawnjelly 9f646c867d Low priority redraw request for AnimatedSprite
Prevents animated sprite from creating continuous redraws in vital_redraws_only mode.

(cherry picked from commit 54a939a029)
2022-09-20 10:23:31 +02:00
lawnjelly 3e848096e8 Portals - Show RayCast debug helper
Switches the raycast helper to global portal_mode, allowing it to show when portals are active.

(cherry picked from commit 09befec1ed)
2022-09-20 10:23:06 +02:00
lawnjelly c7d9c3b21f Fix uninitialized data reads in Input
Found by Valgrind.

(cherry picked from commit d60eae3dbc)
2022-09-09 14:35:08 +02:00
lawnjelly 1c6467c6e4 FlowContainer fix uninitialized data
This uninitialized data was finding its way into the renderer.

(cherry picked from commit fa4a325180)
2022-09-09 14:29:43 +02:00
Michael Alexsander a65247a405 Fix some corner cases in the `Menu/OptionButton` item auto-highlight
(cherry picked from commit 1e80b17a8d)
2022-09-05 15:46:06 +02:00
Michael Alexsander 4744a8a1a9 Make `Menu/OptionButton` item auto-highlight behave better
(cherry picked from commit 50506e19a6)
2022-09-05 15:45:54 +02:00
fabriceci 6029200662 Hack as a hot fix for Bullet's collision margin issue
(cherry picked from commit b3210c5cd6)
2022-08-30 11:48:24 +02:00
Michael Alexsander 08844b6143 Fix `ItemList` selection visual when the scrollbar visibility changes
(cherry picked from commit e298144a41)
2022-08-30 11:21:19 +02:00
Yuri Sizov d92b207189 Backport fixes to documentation for paths, curves and navigation servers
(cherry picked from commit 39f46613bb)
2022-08-30 11:20:03 +02:00
Cory Petkovsek 92eab47591 Fix free(RID) abuse by various classes
(cherry picked from commit f7f112ab1f)
2022-08-30 11:18:02 +02:00
Michael Alexsander 682428279a Expose `set/get_tab_button_icon()` to scripting
(cherry picked from commit 73470e1b16)
2022-08-30 11:16:01 +02:00
Haoyu Qiu 9f4bb53a87 Improve documentation for `get_animation()`
(cherry picked from commit fed2879463)
2022-08-30 11:15:24 +02:00
smix8 1309633cdb Fix NavigationObstacle nodes not registering to default navigation map
Fix NavigationObstacle nodes not registering to default navigation map.

(cherry picked from commit 47b39ce4c2)
2022-08-30 11:14:32 +02:00
Atlinx 9f6c64135c Remove HDR warning if on low end
(cherry picked from commit e3b3462187)
2022-08-30 11:13:54 +02:00
Michael Alexsander 5becfce603 Fix crash when pressing up on an empty `PopupMenu`
(cherry picked from commit f0d380c9fd)
2022-08-30 11:12:23 +02:00
bruvzg 2678fd8202 Fix color modulation of the grayscale glyphs in font with mixed color / grayscale data.
(cherry picked from commit 4d0c0f3ffa)
2022-08-29 17:10:27 +02:00
Olivier Bombardier cd6764611c Fix has_filter of AnimationNode not being called in scripts
(cherry picked from commit c988deb3b1)
2022-08-29 17:09:40 +02:00
Haoyu Qiu e8a9d77e4b Tree: Don't draw selection background of individual cells in Row mode
(cherry picked from commit 4c47c6ab75)
2022-08-29 17:06:00 +02:00
SnailRhymer 6426f2e9c7 Change code folding behavior to include terminal indented comments
Previously, when folding a block of code that finished with an indented comment (i.e. one indented as much as or more than the starting indent of the code), that comment would be left out of the fold. Change the behavior to include such comments, but still leave less-indented ones out.

(cherry picked from commit efed5087ae)
2022-08-29 17:05:09 +02:00
kleonc 2f0577fb0f AnimatedSprite Fix updating inspector when SpriteFrames is modified
(cherry picked from commit 8ae246f15e)
2022-08-08 13:34:05 +02:00
Josh Jones 61e28c28cd Fix typo when setting NavigationRegion travel_cost
(cherry picked from commit 8c324132d0)
2022-08-08 13:18:43 +02:00
smix8 a6b75da78c Fix TileMap error msg when optional navigation node is not set
Fixes TileMap error msg spam when bake_navigation=true but the optional and depr navigation node is not set.

(cherry picked from commit 30d4555c65)
2022-08-06 22:23:01 +02:00
Haoyu Qiu 9d923764c9 Fix crash when executing `AnimationTreePlayer.are_nodes_connected` 2022-08-01 23:36:12 +08:00
Marcel Admiraal d000a5fa30 Ensure changes to Camera2D's limits don't affect smoothed_camera_pos 2022-07-28 15:30:34 +01:00
Marcel Admiraal a124d89f01 When Camera2D enters tree, ensure first update is not lost 2022-07-28 15:30:06 +01:00
Rémi Verschelde 818f1eed31 Code quality: Fix header guards consistency
Adds `header_guards.sh` bash script, used in CI to validate future
changes. Can be run locally to fix invalid header guards.
2022-07-25 14:53:37 +02:00
Rémi Verschelde be5051422b Revert "Call update_scrollbars() in sort_children() so the max is set properly so you can set scroll_container.scroll_vertical instantly after adding children to a scroll container."
This reverts commit b73d2980b7.

This caused a regression. Fixes #63417.
2022-07-25 11:29:33 +02:00
lawnjelly d4dc7c4b32 Portals - Allow more logging to be disabled
Some logging messages were still being issued when portals/debug/logging was false. This could be annoying in games that stream in parts of levels and repeatedly call `rooms_convert()`.

This PR allows all but essential logging to be disabled.
2022-07-24 13:44:59 +01:00
Jason Knight b73d2980b7 Call update_scrollbars() in sort_children() so the max is set properly so you can set scroll_container.scroll_vertical instantly after adding children to a scroll container. 2022-07-21 12:25:50 -06:00
kleonc 558b96f1b1 Fix `CanvasItem` not exiting its canvas group on canvas exit 2022-07-20 12:49:38 +02:00
Rémi Verschelde 33b5709d53
Merge pull request #61601 from Haydoggo/path-follow-fix-3.x 2022-07-18 09:36:22 +02:00
Rémi Verschelde 5aa22a21be
Merge pull request #63058 from AaronRecord/backport-global-position-rotation 2022-07-18 09:33:23 +02:00
Rémi Verschelde 090d9f6d25
Merge pull request #63084 from madmiraal/fix-56336-3.x 2022-07-18 09:31:58 +02:00
Yuri Rubinsky 229bfc8f2d Fix invalid code generation when using `VisualShaderNodeUniformRef` 2022-07-17 12:41:24 +03:00
Marcel Admiraal 162cb5748a Update camera position when updating camera limit 2022-07-17 09:02:34 +01:00