Commit Graph

13859 Commits

Author SHA1 Message Date
afa50c4d2b Fix SoftBody3D for double-precision builds
(cherry picked from commit 701ecd3a0d)
2024-03-11 17:28:54 +01:00
7c162351c9 Check is the ref shader valid in visual shader's update_option_menu
(cherry picked from commit ff089f8cea)
2024-03-11 16:36:30 +01:00
cc38139799 Fix visual shader's screen_uv input preview uses position of node
rather than a sample area like uv

(cherry picked from commit d920bdeda5)
2024-03-11 16:10:14 +01:00
e46cba13ed Remove GI methods in parentheses from light baking options
(cherry picked from commit ce488930ea)
2024-03-11 15:00:44 +01:00
2ec1d8043c Store ArrayMesh path in RenderingServer for use in error messages
(cherry picked from commit ead36fdcc4)
2024-03-11 15:00:43 +01:00
138b3ded67 Ensure Camera2D scroll is updated on transform like 3.x
(cherry picked from commit 734166f796)
2024-03-11 15:00:43 +01:00
d19d2ca307 Fix property hints for parsed collision mask
In NavigationPolygon use PROPERTY_HINT_LAYERS_2D_PHYSICS instead of PROPERTY_HINT_LAYERS_3D_PHYSICS to display the correct property hints.

Fixes #88154.

(cherry picked from commit 0831ea0c52)
2024-03-11 15:00:43 +01:00
6ba9c6bf6d Avoid singularity when generated tangents and validate that tangents are good enough when using compression
(cherry picked from commit 781cd27fe4)
2024-03-11 15:00:43 +01:00
a61a84ff09 Properly calculate binormal when creating SurfaceTool from arrays
(cherry picked from commit f267b2aa87)
2024-03-11 15:00:43 +01:00
17e50c629c Fix owner when importing meshes
Handle the case correctly, that a child of a replaced node has
as owner an ancestor of the replaced node.

(cherry picked from commit c58607c32f)
2024-03-11 15:00:43 +01:00
3d4c2fa7da Fix inefficient list iteration in Node
(cherry picked from commit 75ba837612)
2024-03-11 15:00:43 +01:00
b254088b7a Fix global position for InputEventMouse in viewport::push_input
Global position doesn't get adjusted within `InputEventMouse::xformed_by()`.

(cherry picked from commit 8de39911c8)
2024-03-11 15:00:43 +01:00
2fdeeead5b Merge pull request #88916 from AThousandShips/tile_thread_fix_4_2
[4.2] Prevent threading problems in `TileMap`
2024-02-28 13:35:59 +01:00
c17688fa6c Fix running tests in template builds
Also fixes some errors with 3D disabled
2024-02-27 16:03:18 +01:00
36e611fa83 Prevent threading problems in TileMap 2024-02-27 16:02:54 +01:00
881d253897 Fix some build errors with disable_3d=Yes
* Some tests were incorrectly included
* SCU builds with animation
* Animation `switch`

(cherry picked from commit c6a1ae7875)
2024-01-25 18:55:00 +01:00
a92a2015f0 Fix missing autocompletion for inheriting classes
(cherry picked from commit ca2f340384)
2024-01-25 18:45:01 +01:00
873a77d8e9 Add autocompletion options for AnimatedSprite's other play methods
(cherry picked from commit d5a7c7818c)
2024-01-25 18:45:01 +01:00
c2d38b4388 Fix invalid frame index when Sprite2D's hframes or vframes has been changed
(cherry picked from commit 484c5b5aff)
2024-01-25 18:32:37 +01:00
5573f37ff3 Change suffix from m to px
(cherry picked from commit b7d5f3e984)
2024-01-25 18:32:36 +01:00
6e6d49c68a Fix ColorPicker's alpha slider arrow offset
(cherry picked from commit d76d8c5f29)
2024-01-25 18:32:35 +01:00
6777e1b4bf Replace memory allocation point of ValueTrack correctly in AnimationMixer
When a animation track doesn't have an keys, it's possible that we leak memory due the ERR_CONTINUE_MSG macro usage.

By checking the error condition first, we avoid a allocation and thus the leak.

(cherry picked from commit ea84effb84)
2024-01-25 18:32:35 +01:00
43d24379a5 Trigger zoom from pan gestures when pressing ctrl
Enables zooming using pan + ctrl on macOS trackpads / Magic Mouse.
Windows and Linux don't emit pan gesture events, so shouldn't be
affected. Not tested on Android.

(cherry picked from commit 6b45694836)
2024-01-25 18:32:35 +01:00
6f6a1dc5e9 Fix D&D viewport position calculation
It is necessary to transform screen position to viewport position.

(cherry picked from commit 4b6516c843)
2024-01-25 18:08:46 +01:00
d01c60c178 Changed HTML input color_changed logic.
Made the HTML field send change events based on whether the new color's string is different from the previous color's string (instead of whether the new string parses to the current color value).
Previously, updating the color value even when the corresponding string hadn't changed would unnecessarily quantize the color value to 8 bits just by opening/closing the Color Picker.

(cherry picked from commit 21d778b0c3)
2024-01-25 18:08:45 +01:00
b247151af2 Improve Curve3D Debug Drawing
(cherry picked from commit 982ce34a58)
2024-01-25 18:08:45 +01:00
032d96042d Fixes global transform being wrong on entering tree
(cherry picked from commit 0a726d692a)
2024-01-25 17:19:42 +01:00
209aa9821a Make default blend_left consider current blend amount
(cherry picked from commit f8da9460c1)
2024-01-25 17:19:42 +01:00
a1c32a9462 Only update particle velocity when it changes
(cherry picked from commit cb0a37f61a)
2024-01-25 17:19:41 +01:00
b20ba6bd12 Fix discrete key retrieval method after start
(cherry picked from commit b438e28509)
2024-01-25 17:19:41 +01:00
19bb93513a Make unstore AnimationLibrary if AnimationTree is assigned Player
(cherry picked from commit c380b1296a)
2024-01-25 17:19:41 +01:00
c285b726bb Fix file disappearing when renaming dependencies
(cherry picked from commit 397f0b31e4)
2024-01-25 17:19:41 +01:00
1b8d1048ad Restored the ability for linear interpolation to work on a mix of integer and float keyframes.
(cherry picked from commit 12ce2e33b2)
2024-01-25 17:19:41 +01:00
4d3e25d09d Fix RichTextLabel.remove_paragraph crash by popping current
(cherry picked from commit c0f8e0061d)
2024-01-25 17:03:57 +01:00
776938f731 Fix PrismMesh::_create_mesh_array division by 0
(cherry picked from commit 83992fd7bd)
2024-01-25 17:03:57 +01:00
ba23081eb7 Fix crash caused by stale owner
Adjust `NOTIFICATION_PREDELETE` in `Node` to clean up owned nodes.
Also print a warning, when the owner becomes invalid.

(cherry picked from commit d3d00c7039)
2024-01-25 17:03:57 +01:00
f1f56746b9 Make AnimationTree reference AnimationPlayer instead of AnimationMixer
(cherry picked from commit 7946e84187)
2024-01-25 17:03:57 +01:00
kit
29811357a3 fix crash on hiding grandparent on mouse exit
(cherry picked from commit 78e1702adb)
2024-01-25 17:03:56 +01:00
0c00f3ece2 Redraw TreeItem on more changes
* Custom font changes
* Custom draw changes
* Custom as button

(cherry picked from commit 552594ffdc)
2024-01-24 16:38:28 +01:00
ce34a9b9a1 Fix CollisionObject3D Gizmo not updated after calling shape_owner_* functions
(cherry picked from commit 80a488a242)
2024-01-24 16:38:28 +01:00
b3977ad4c6 Fix Polygon2D to Skeleton2D transform calculation
(cherry picked from commit 41e4f3c215)
2024-01-24 15:56:50 +01:00
045b1d5990 Transform mesh's AABB to skeleton's space when calculate mesh's bounds.
(cherry picked from commit 27f71c4e78)
2024-01-24 15:56:50 +01:00
kit
c4383c0d47 fix dock visibility issues
(cherry picked from commit a2674463fa)
2024-01-24 15:56:50 +01:00
d094b574bb Fix Audio track crossfade in AnimationPlayer does not work 2024-01-03 01:46:18 +09:00
6e043b80f6 Fixes TileMap occluders
(cherry picked from commit fcb8d19de0)
2023-12-11 11:41:58 +01:00
d29aaedd78 Limit window size updates on title translation change.
(cherry picked from commit f9c42d9fff)
2023-12-07 10:27:09 +01:00
511b4f822a Make sure Window's title is respected before we compute the size
Also removes some suspicious and outdated code that forced this particular
dialog to change size when the warning message changed.

(cherry picked from commit d9677be0ca)
2023-12-07 10:27:08 +01:00
bcf09f1d9e Remove exp hint of a few properties
(cherry picked from commit 09270f9624)
2023-12-07 10:27:07 +01:00
77383e63a6 Keep scene tiles even if the TileMap is invisible
(cherry picked from commit 25e927e56b)
2023-12-07 10:27:06 +01:00
51816380b5 Fix memory corruption and assert failures in convex decomposition
This PR fixes how triangular faces are decomposed into vertices and indices. The pre-increment resulted in the indices table skipping entry 0 and potentially overrunning the end of the vertices vector.

(cherry picked from commit bf7cdc5229)
2023-12-07 10:27:05 +01:00