Commit graph

7457 commits

Author SHA1 Message Date
Paweł Fertyk
62f2b8a940
Fix BitMap.resize error spam
Fixes #70187.

(cherry picked from commit ddd7189b39)
2022-12-22 12:25:05 +01:00
kleonc
f0fe514fc2
AtlasTexture Fix calculating rects when flipping
(cherry picked from commit c3851b91db)
2022-12-22 12:23:03 +01:00
Marius Hanl
fab73c6c7e
Check for null event in Tree._gui_input to avoid engine crash
(cherry picked from commit 09f974b21d)
2022-12-22 12:22:17 +01:00
Haoyu Qiu
d13e327abe
Fix possible Tween leak on exit
(cherry picked from commit e173710963)
2022-12-22 12:22:00 +01:00
Rémi Verschelde
a204af90d5
Revert "Fix the logic used to route InputEventScreenDrag events to Control nodes."
This reverts commit 26012ed6b6.

This caused a regression: #70119.
2022-12-22 11:25:31 +01:00
Rémi Verschelde
c4a9b42297
Fix typos with codespell 2022-12-15 12:27:58 +01:00
Haoyu Qiu
cf34580b90
Fix crash after executing ItemList.set_icon_scale
(cherry picked from commit 8d0fa193c3)
2022-12-13 14:24:50 +01:00
Hugo Locurcio
4c83336a3d
Fix infinite loop when calling Control.popup_centered_minsize()
Co-authored-by: sriramun <sriramun2@gmail.com>
(cherry picked from commit 08e804b3b7)
2022-12-12 14:46:59 +01:00
Dawid Marzec
b48433d0c3
Fix errors while deselecting all tree items; issue #65185
(cherry picked from commit d4d5df2314)
2022-12-12 14:46:34 +01:00
Paweł Fertyk
00c346b325
Fix get_visible_line_count in RichTextLabel with newlines
Fixed #59359.

(cherry picked from commit 32cdf9fad2)
2022-12-12 14:43:48 +01:00
smix8
2ead966f87 Add detail to NavigationPolygon outline error msg
Adds additional information to the error msg when the convex partition fails due to invalid outline arrays.

(cherry picked from commit f30ebacbe8)
2022-12-12 14:20:08 +08:00
Hugo Locurcio
bacda47336 Fix BackBufferCopy rect property appearing when not relevant in inspector
The `rect` property is only effective if `copy_mode` is Rect.

(cherry picked from commit 5115db63aa)
2022-12-12 13:39:10 +08:00
Haoyu Qiu
3d0f484c57 Fix CanvasLayer visibility toggle can only run once per frame
(cherry picked from commit a6a89356b7)
2022-12-12 13:37:35 +08:00
QbieShay
a945538eae added options for sorting transparent objects
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
Co-authored-by: Clay John <claynjohn@gmail.com>
(cherry picked from commit acdcbefa4e)
2022-12-12 13:33:52 +08:00
Micky
a8c01896cc Cast between float and ints in SceneTreeTween.tween_property()
(cherry picked from commit 2b18a4002c)
2022-12-12 13:26:00 +08:00
hare_ware
b012fed826 Fix Skeleton3D falsely assuming all physical bones will be children of their first bone
(cherry picked from commit 913f57f695)
2022-12-05 10:12:10 +08:00
jbcolli2
a49a90742f Changed normal of CylinderMesh to account for slanted side.
(cherry picked from commit 491ec622f6)
2022-12-05 10:05:23 +08:00
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