15336 Commits

Author SHA1 Message Date
d1dd2647a4 Merge pull request #109668 from aaronfranke/4.3-import-mesh-validate-indices-mult-3
[4.3] ImporterMesh: Validate triangle indices array size is a multiple of 3
2025-10-29 23:05:48 +01:00
133780f530 Core: Sidestep GCC false-positives
(cherry picked from commit acdb8667b5)

Adds some more fixes for 4.5 and earlier.

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2025-10-28 21:53:35 +01:00
79aefd4c0e [4.3] ImporterMesh: Validate triangle indices array size is a mult of 3 2025-08-28 09:46:52 -07:00
e6522a4e1c CI: Sync configuration with 4.4 branch
Includes cherry-picks of warning fixes from a44f691fc7
and 8d1462c748.
2025-04-24 23:55:20 +02:00
e5b78070b1 Fix button text autowrap overflow when inside a container
(cherry picked from commit 0f98b32448)
2025-02-07 14:00:02 +01:00
44a80d34d5 Fix button click detection when Tree is rotated
(cherry picked from commit 17642692c5)
2025-02-07 14:00:02 +01:00
bb343ed1c5 Fix renaming nodes on X11
(cherry picked from commit 36293a2dbf)
2025-02-07 14:00:02 +01:00
1089bc1145 Fix project manager stealing focus on i3
(cherry picked from commit b1871cdabf)
2025-02-07 14:00:02 +01:00
63e0fb55f9 Merge pull request #100364 from RandomShaper/fix_mtl_mt_deadlock_4.3
[4.3] Fix deadlock possibility in threaded load of materials
2024-12-14 18:15:19 +01:00
9406926f8b Fix deadlock possibility in threaded load of materials 2024-12-13 12:50:03 +01:00
a5f6e49862 Fix deadlocks related to ClassDB queries about global classes
`ClassDB::can_instantiate()` and other reflection methods deadlock if the type is an script global class, when such script indirectly uses a not-yet-registered class. The reason is the `ClassDB` read lock is still held when invoking the `ResourceLoader` to load the class script, which may in turn need to lock for writing (for the class registration).

In particular, this happens with some types related to animation tree, that aren't registered at engine startup, but can happen with others, especially ones from the user. Registration statements are also added for the animation-related types that were lacking them.
2024-11-08 18:17:53 +01:00
7b32e96f3d Fix syncing PhysicalBone internal poses individually
(cherry picked from commit 2b3cf2451f)
2024-09-17 09:59:53 +02:00
56a1d07421 Added a more detailed error message when instatiating a scene with missing export properties.
(cherry picked from commit 1df0159b36)
2024-09-17 09:59:13 +02:00
35b4a1f374 [Windows] Emit native file dialog callback from event loop, fix selected options not saved.
(cherry picked from commit ea252675aa)
2024-09-17 08:57:46 +02:00
0a83f06608 Fix VSlider grabber area.
(cherry picked from commit 701188fd1e)
2024-09-17 08:57:46 +02:00
47f34e8436 Add missing "Quad" capture TransitionType enum hint
(cherry picked from commit 8d30ccd067)
2024-09-17 08:57:46 +02:00
51c86eb085 WAV: Fix one frame overflow at the end
(cherry picked from commit 147accdf74)
2024-09-17 08:57:45 +02:00
69713dadf0 [RTL] Fix font not updated for some spans.
(cherry picked from commit e517eaf053)
2024-09-17 08:57:45 +02:00
e7e723b3e3 Do not defer PathFollow3D transform updates
Co-authored-by: Yaohua Xiong <xiongyaohua@gmail.com>
(cherry picked from commit 51b8b74d4b)
2024-09-17 08:57:44 +02:00
0b815cbb99 Fix leak when using audio samples instead of streams
(cherry picked from commit d3ddce6b88)
2024-09-17 08:57:44 +02:00
b2b882cc1d Fix super call in various get_configuration_warnings methods
(cherry picked from commit 9dc231366d)
2024-09-17 08:57:44 +02:00
21a0a84c6f Fix StyleBoxFlat rectangles skewing independently
(cherry picked from commit 86c773d208)
2024-09-17 08:57:44 +02:00
d7a8654edd Fix 2D debug navigation flickering with tile maps
Both the tile map layers and the debug navigation canvas items did fight for the same z order causing a lot of flickering in certain situations.

(cherry picked from commit 5bedaf77f7)
2024-09-17 08:57:43 +02:00
af8caffd0e Fix shadow mesh recursion.
(cherry picked from commit 70860aafd8)
2024-09-17 08:57:43 +02:00
a2f64b3c10 Fix SubViewport/AudioStreamPlayer2D crash
Updated Viewport destructor to remove itself from World2D, to avoid World2D keeping invalid pointers.

(cherry picked from commit 7a9acd5aca)
2024-09-17 08:57:42 +02:00
f8c9ec3f37 fix deadzone slider not working correctly
(cherry picked from commit 2fd39eca30)
2024-09-17 08:57:42 +02:00
fd17fae4bd [RTL] Do not add final newline to the paragraph context.
(cherry picked from commit 02113dff83)
2024-09-17 08:57:42 +02:00
b60bf28a2f Fix physical bone update without simulating
(cherry picked from commit f2186eeac0)
2024-09-17 08:57:42 +02:00
e72e42fe9b Fix collapsing TreeItem not updating horizontal scrollbar
(cherry picked from commit d16dcbb3ac)
2024-09-17 08:57:42 +02:00
0f33a4b97e Fix invalid Skeleton3D bone pose updates
The issue would cause log spams when trying to update the bone pose position or rotation with an invalid bone index.

(cherry picked from commit 039722a341)
2024-09-16 17:19:17 +02:00
f9bcd4f0ca Enable revert button for ShaderMaterial::next_pass and ShaderMaterial::render_priority.
(cherry picked from commit ba23b22153)
2024-09-16 17:19:07 +02:00
219ddde30c Honor pitch_scale value before playing audio sample
(cherry picked from commit aaafd163b2)
2024-09-16 17:15:29 +02:00
2dd696867f Always store ID of PopupMenu items
(cherry picked from commit 5279fec60f)
2024-09-16 17:15:19 +02:00
df6bbb2538 Fix MenuBar popup placement assuming it's in viewport default canvas
(cherry picked from commit 8228d647a9)
2024-09-16 17:08:44 +02:00
32f2b851ab Redraw SubViewportContainer on SubViewport size change
(cherry picked from commit 61e2aa7914)
2024-09-16 17:06:04 +02:00
9af6e04a15 Fix backspace always unfolding previous line
(cherry picked from commit 2860b99077)
2024-09-16 17:05:16 +02:00
eaa8ecb182 Fix bone2d scaling
Co-authored-by: Thiago Lages de Alencar <thiagola92@gmail.com>
(cherry picked from commit de558123bf)
2024-09-16 17:04:49 +02:00
c7dbcbd6d4 Fix Skeleton2D.{_set|_get} always returning true
(cherry picked from commit 115cd47fd6)
2024-09-16 17:04:28 +02:00
f0f69a7b7c Fix Parallax2D repeats being not relative to its transform
(cherry picked from commit 1bd8372813)
2024-09-16 17:04:12 +02:00
7266418bdf Fix node.duplicate, return nullptr if this operation fails.
(cherry picked from commit 70f41e414e)
2024-09-16 17:02:35 +02:00
8ea64814ed Add stop_callable to AudioStreamPlayerInternal
(cherry picked from commit 8c7dd3cb61)
2024-09-16 17:00:18 +02:00
acba31b746 Fix SoftBody3D pinned points breaking when reloading scene
(cherry picked from commit bde8c5977b)
2024-09-16 16:47:13 +02:00
a031407e82 Fix TileAtlasView bounds checks for transposed tiles
(cherry picked from commit 6895f6f8cc)
2024-09-16 16:46:57 +02:00
2eb2052cb9 Change "Node3D" to "Spatial" in VisualShader resource
(cherry picked from commit b9876b626d)
2024-09-16 16:46:29 +02:00
ea5989e3f5 Add NavigationLink function to change navigation map
Adds NavigationLink function to change navigation map.

(cherry picked from commit e6ff4e56e3)
2024-09-16 16:45:38 +02:00
a7d79f9e6c Fix TextServer::shaped_text_*_character_pos for the first character of wrapped string. Allow starting/ending RTL selection before line start.
(cherry picked from commit 932acce8f2)
2024-09-16 16:38:23 +02:00
79848620ce [BMFont] Fix importing fonts with Match char height enabled.
(cherry picked from commit e7f215c2c4)
2024-09-16 16:35:06 +02:00
302af188a1 Fix tooltip content being cut off at some display scales
When getting the minimum size for a tooltip, we get the value as a Vector2.  Window::set_size() takes a Vector2i, so this size was getting truncated.  At certain display scales, this could be enough to cut off part of the tooltip.  Updated to call Vector2::ceil() to round up before calling Window::set_size()

Fixes #91958

(cherry picked from commit ca8e3d4923)
2024-09-16 16:34:31 +02:00
6595395b8b Fix LightmapGI not taking environment sky rotation into account when baking
The sky rotation now affects the baked environment lighting as it should,
making it match how real-time ambient light rendering works.

Co-authored-by: Per Melin <git@melin.net>
(cherry picked from commit 661cf1f351)
2024-09-16 16:33:15 +02:00
2df506ea15 fix to ensure generated light probes do not get placed too close to manual light probes
(cherry picked from commit 97205ea5b8)
2024-09-16 16:32:22 +02:00