Commit Graph

13881 Commits

Author SHA1 Message Date
Silc Lizard (Tokage) Renew
5e7607a6d6
Fix AnimationPlaybackTrack seeking behavior overall
Co-authored-by: jsjtxietian <jsjtxietian@outlook.com>
Co-authored-by: Miguel0312 <miguel.vpereira14@gmail.com>
Co-authored-by: BruceLiCong <citb_li@163.com>
(cherry picked from commit c1741fe98e)
2024-04-08 15:48:30 +02:00
Alistair Leslie-Hughes
96cbb7ab65
Correct FileDialog Theme overrides
Introduced in 15fd025f90

Fixes #89818

(cherry picked from commit 13d83dd4d7)
2024-04-08 15:48:29 +02:00
A Thousand Ships
c6ae98ab60
[TileMap] Fix forcing cleanup on exiting tree/canvas 2024-03-28 13:26:55 +01:00
clayjohn
fa1b68094e
Improve warning when XR shaders are not enabled
(cherry picked from commit d8f2768b90)
2024-03-12 21:15:06 +01:00
Mounir Tohami
b4be0634d4
Fix TabBar size when theme changes
(cherry picked from commit fdba051a40)
2024-03-11 23:28:02 +01:00
Mounir Tohami
f90d6dffed
Fix Slider's drag mouse position when grabber is centered
(cherry picked from commit e6a42e3fc5)
2024-03-11 23:27:20 +01:00
ACB
fb63404aad
Only recurse depth wise in Tree::_count_selected_items
(cherry picked from commit 43038bbfcb)
2024-03-11 23:26:48 +01:00
Mikael Hermansson
696e9e04d9
Fix crash when selecting re-added Tree item
(cherry picked from commit f7c1c83daa)
2024-03-11 23:24:40 +01:00
Rémi Verschelde
e771e2e379
Don't access Node3D/Node2D/Control global transform in reparent unless needed
Fixes #89002.

Co-authored-by: Tamás Gálffy <ezittgtx@gmail.com>
(cherry picked from commit 810a0dbff1)
2024-03-11 23:24:22 +01:00
bruvzg
147b99ae2a
[RTL] Fix meta hover area detection.
(cherry picked from commit 42e6cda14e)
2024-03-11 23:23:39 +01:00
jsjtxietian
c71cda870b
Fix pass int to tween's from with float property will be forced to interpolate as int
(cherry picked from commit 3c596094ab)
2024-03-11 23:22:06 +01:00
Mateus Reis
e4181c6d48
Fix double text_changed signal when overwriting selection in LineEdit
The part of gui_input that handles unicode wasn't checking
text_changed_dirty before emitting the signal, unlike the rest of the text editing functions.

Fixes #86451

(cherry picked from commit cab48493d8)
2024-03-11 23:20:48 +01:00
Emmanouil Papadeas
d216ac7a2c
Fix MenuBar hover position scaling properly with the scale factor multiplier
(cherry picked from commit e864b26e54)
2024-03-11 23:20:32 +01:00
kleonc
903dfb91a7
Fix animated tile random start time not scaled to animation duration
(cherry picked from commit 7dfd0c45e9)
2024-03-11 23:07:35 +01:00
Thaddeus Crews
93fcd9ce41
Replace GDVIRTUAL_CALL with GDVIRTUAL_REQUIRED_CALL where applicable
(cherry picked from commit 83ef789745)
2024-03-11 23:07:04 +01:00
Ricardo Subtil
7fd058a7fa
Ensure slider grabs focus only when it can
(cherry picked from commit fde51aeb28)
2024-03-11 22:50:07 +01:00
风青山
261129496c
Fix duplicating sub-scene may get two copies of internal node
Previously, internal node might be mistaken for `hidden_root` and be duplicated again.
Exclude those internal nodes to avoid this case, unless the owner is set intentionally.

(cherry picked from commit f19c419126)
2024-03-11 22:34:53 +01:00
Nikolai Davydov
18d497d744
Fix virtual calls for GDExtension in CollisionObject2D for _mouse_enter, _mouse_exit, _mouse_shape_enter, _mouse_shape_exit
(cherry picked from commit 0517000e6f)
2024-03-11 18:10:06 +01:00
David Snopek
17b1fd94af
Fix overriding CollisionObject3D::_mouse_enter() and _mouse_exit() from GDExtension
(cherry picked from commit bfdcd8559b)
2024-03-11 18:10:01 +01:00
jsjtxietian
4e3cd10173
Support immediately update ui after resizing placeholder* texture
(cherry picked from commit e896fbb638)
2024-03-11 18:07:44 +01:00
jsjtxietian
8d069c3f5c
Fix wrong fail contion in compressed texture and some clean up
(cherry picked from commit 6a3b63eb36)
2024-03-11 18:01:31 +01:00
LimestaX
1a8649fc3e
Ensure special characters are escaped in tscn connections and editable hint
(cherry picked from commit 0a32c160ac)
2024-03-11 17:58:20 +01:00
Mikael Hermansson
afa50c4d2b
Fix SoftBody3D for double-precision builds
(cherry picked from commit 701ecd3a0d)
2024-03-11 17:28:54 +01:00
jsjtxietian
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
jsjtxietian
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
David Snopek
e46cba13ed
Remove GI methods in parentheses from light baking options
(cherry picked from commit ce488930ea)
2024-03-11 15:00:44 +01:00
clayjohn
2ec1d8043c
Store ArrayMesh path in RenderingServer for use in error messages
(cherry picked from commit ead36fdcc4)
2024-03-11 15:00:43 +01:00
Danni
138b3ded67
Ensure Camera2D scroll is updated on transform like 3.x
(cherry picked from commit 734166f796)
2024-03-11 15:00:43 +01:00
David Zang
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
clayjohn
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
clayjohn
a61a84ff09
Properly calculate binormal when creating SurfaceTool from arrays
(cherry picked from commit f267b2aa87)
2024-03-11 15:00:43 +01:00
Markus Sauermann
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
kobewi
3d4c2fa7da
Fix inefficient list iteration in Node
(cherry picked from commit 75ba837612)
2024-03-11 15:00:43 +01:00
Markus Sauermann
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
Rémi Verschelde
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
A Thousand Ships
c17688fa6c
Fix running tests in template builds
Also fixes some errors with 3D disabled
2024-02-27 16:03:18 +01:00
A Thousand Ships
36e611fa83
Prevent threading problems in TileMap 2024-02-27 16:02:54 +01:00
A Thousand Ships
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
Micky
a92a2015f0 Fix missing autocompletion for inheriting classes
(cherry picked from commit ca2f340384)
2024-01-25 18:45:01 +01:00
Micky
873a77d8e9 Add autocompletion options for AnimatedSprite's other play methods
(cherry picked from commit d5a7c7818c)
2024-01-25 18:45:01 +01:00
Mika Viskari
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
Emily
5573f37ff3 Change suffix from m to px
(cherry picked from commit b7d5f3e984)
2024-01-25 18:32:36 +01:00
kleonc
6e6d49c68a Fix ColorPicker's alpha slider arrow offset
(cherry picked from commit d76d8c5f29)
2024-01-25 18:32:35 +01:00
Alistair Leslie-Hughes
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
Aitor Guevara
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
Markus Sauermann
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
Michael Wörner
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
BlueCube3310
b247151af2 Improve Curve3D Debug Drawing
(cherry picked from commit 982ce34a58)
2024-01-25 18:08:45 +01:00
Gilles Roudière
032d96042d Fixes global transform being wrong on entering tree
(cherry picked from commit 0a726d692a)
2024-01-25 17:19:42 +01:00
Silc Lizard (Tokage) Renew
209aa9821a Make default blend_left consider current blend amount
(cherry picked from commit f8da9460c1)
2024-01-25 17:19:42 +01:00