Commit Graph

66273 Commits

Author SHA1 Message Date
Pedro J. Estébanez
018f8be3d5
Object: Let debug lock handle callee destruction within call chain gracefully
Co-authored-by: lawnjelly <lawnjelly@gmail.com>
(cherry picked from commit 10e2318bde)
2024-09-17 08:57:45 +02:00
Lisandro Lorea
d92f9017c6
Fix gamepad triggers not working on web exports
Fixes #81758

DisplayServerWeb::process_joypads handles buttons 6 and 7 of the
HTML5 Standard Gamepad as a special case by doing:
`input->joy_axis(idx, (JoyAxis)b, s_btns[b]);`

This doesn't work because there is no JoyAxis 6 or 7 in the enum

To fix this we use JoyAxis::TRIGGER_LEFT and TRIGGER_RIGHT for button 6
and 7

However since we are now lying to input->joy_axis we also need to lie in
the mappings for the standard gamepad in godotcontrollersdb.txt,
otherwise input->joy_axis will try to find a mapping to axis 4(LT) and
axis 5(RT) that's not defined.

Therefore we set lefttrigger to +a4 and righttrigger to +a5 in the
mapping, to match what we are actually sending.

A cleaner, and more involved fix to this would be modifying
input->joy_button so that it can handle analog buttons and map them to
axes preserving their value instead of converting to boolean

(cherry picked from commit 9dd372f316)
2024-09-17 08:57:45 +02:00
A Thousand Ships
34251cf5b3
[Windows] Use GetFileTime for FileAccess
Prevents DST from rearranging file times.

(cherry picked from commit 7139f46c9a)
2024-09-17 08:57:45 +02:00
Giganzo
d00e4fbb16
Fix double lock/group buttons when starting editor with empty scene
(cherry picked from commit 96aa2f285c)
2024-09-17 08:57:45 +02:00
Giganzo
927d7a9250
Fix below what value is invalid in default_font_size doc
(cherry picked from commit 575a0b4dfb)
2024-09-17 08:57:45 +02:00
Giganzo
13701384ab
Fix slider size in compact mode
(cherry picked from commit f21a969bb9)
2024-09-17 08:57:45 +02:00
Hristo Iliev
f4b71b5325
Fix polygon node losing its UV toolbar by adding a call to the show method when assinging a node.
Fixes #96238

(cherry picked from commit dabeaa6a4b)
2024-09-17 08:57:45 +02:00
DeeJayLSP
51c86eb085
WAV: Fix one frame overflow at the end
(cherry picked from commit 147accdf74)
2024-09-17 08:57:45 +02:00
BlueCube3310
4addddd8df
Compatibility: Fix alignment of compressed textures when retrieving
(cherry picked from commit 0182294b37)
2024-09-17 08:57:45 +02:00
Dowsley
6dd8e7fece
Update AnimationPlayer in real-time when bezier curve properties or bezier editor changes
(cherry picked from commit 9d0944b673)
2024-09-17 08:57:45 +02:00
bruvzg
69713dadf0
[RTL] Fix font not updated for some spans.
(cherry picked from commit e517eaf053)
2024-09-17 08:57:45 +02:00
Mikael Hermansson
90f1c3e7bd
Fix issue with GDScript binary tokens being non-deterministic
(cherry picked from commit e120792760)
2024-09-17 08:57:45 +02:00
A Thousand Ships
d51be1f68d
[Buildsystem] Improve cache handling
Prevents cache issues by not purging cache before starting a build.
Splits cache purge related code from progress code and delays the purge
until after final build is done.

(cherry picked from commit acffc53e01)
2024-09-17 08:57:45 +02:00
Rudolph Bester
3fac9e43af
Fixed OpenGL shadow textures not honoring texture type when reusing textures
(cherry picked from commit 359aaa48ee)
2024-09-17 08:57:44 +02:00
Haoyu Qiu
1d790deedb
Fix parsing of 4. in Expression
(cherry picked from commit ee9cea521d)
2024-09-17 08:57:44 +02:00
kleonc
88370e44d8
Fix undoing "Move tiles" TileMapLayer action when drag/drop areas overlap
(cherry picked from commit ab504b3139)
2024-09-17 08:57:44 +02:00
shahriarlabib000
c7a173aa60
Fix directory empty bug on Android
(cherry picked from commit 8f66513bad)
2024-09-17 08:57:44 +02:00
Yaohua Xiong
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
Praytic
281642831c
Enable MSAA support for all non-web platforms
MSAA support is built into GLES3 core, eliminating the need to check for GL_EXT_framebuffer_multisample, which was necessary only in GLES2 due to the lack of inherent multisample framebuffer support. This commit corrects an oversight from GLES2-based code, ensuring compatibility with GLES3 where multisampling is natively supported without extensions.

(cherry picked from commit fc955fa89f)
2024-09-17 08:57:44 +02:00
bruvzg
6b7f36e2a9
[Windows] Fix broken apksigner detection.
(cherry picked from commit 2c991a727b)
2024-09-17 08:57:44 +02:00
Pedro J. Estébanez
f757cc9a70
RenderingDevice: Fix uncapped mipmap sizes causing div-by-zero
(cherry picked from commit 7f1989bac1)
2024-09-17 08:57:44 +02:00
ajreckof
cab91cf8fb
fix clear button on Array[Node]
(cherry picked from commit dee0453b57)
2024-09-17 08:57:44 +02:00
Adam Scott
0b815cbb99
Fix leak when using audio samples instead of streams
(cherry picked from commit d3ddce6b88)
2024-09-17 08:57:44 +02:00
Pedro J. Estébanez
f11f9e3b7f
AudioServer: Fix code style issues
- Drop STL copy in favor of old-school for loops.
- Be explicit about loads and stores to atomic value. (This also fixes an error in certain compiler toolchains.)

(cherry picked from commit 1cc485ba1f)
2024-09-17 08:57:44 +02:00
A Thousand Ships
b2b882cc1d
Fix super call in various get_configuration_warnings methods
(cherry picked from commit 9dc231366d)
2024-09-17 08:57:44 +02:00
Gustavo Jaruga Cruz
f5b5b6cbfe
Fix interactive audio transitions fade in for clips with auto_advance
(cherry picked from commit 4fa6287de1)
2024-09-17 08:57:44 +02:00
RedMser
02c45088ea
Fix "reparent to new node" when node has internal children
(cherry picked from commit 8da49ab947)
2024-09-17 08:57:44 +02:00
RedMser
7f0cc1aa35
Fix "reparent to new node" not remembering index
(cherry picked from commit b11ccf3c77)
2024-09-17 08:57:44 +02:00
kleonc
21a0a84c6f
Fix StyleBoxFlat rectangles skewing independently
(cherry picked from commit 86c773d208)
2024-09-17 08:57:44 +02:00
jsjtxietian
fb1758ce23
Fixes godot crash or give unclear message when exporting with invalid args
(cherry picked from commit 1d09970404)
2024-09-17 08:57:44 +02:00
Danil Alexeev
c4525f24e3
GDScript: Do not produce UNUSED_SIGNAL warning for common implicit uses
(cherry picked from commit d1e2afaae3)
2024-09-17 08:57:43 +02:00
Giganzo
61b2ad9242
Fix Set Frame Title popup position
(cherry picked from commit 7d78d753b5)
2024-09-17 08:57:43 +02:00
smix8
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
Giganzo
1629e9b1fa
Fix shift clicking on Add Sun/Environment to Scene buttons
(cherry picked from commit 1b6af3acd3)
2024-09-17 08:57:43 +02:00
A Thousand Ships
3783527410
[Editor] Fix handle ID being passed for 3D Gizmo plugins
(cherry picked from commit 62d98c6f02)
2024-09-17 08:57:43 +02:00
A Thousand Ships
00866dc80a
[Editor] Prevent duplicate Open in Editor buttons in scene tree dock
Duplicate buttons were added when editor description changed

(cherry picked from commit ab04d76e0e)
2024-09-17 08:57:43 +02:00
Hilderin
d842870331
Fix selection stuck after saving scene
(cherry picked from commit 613d4d10cb)
2024-09-17 08:57:43 +02:00
detomon
2635ff777e
Prevent editing value on focus when EditorSpinSlider is read-only
(cherry picked from commit 88f1b679f3)
2024-09-17 08:57:43 +02:00
ev13bird
cbcc5f8d19
Fix instant transformations not being committed when used in succession
Also:
- Fix holding down keys repeatedly committing instant transformations, and disallow starting instant during non-instant
- Fix echoed inputs starting new instant transformations after clicking to confirm, and disallow left mouse release committing instant transformations

(cherry picked from commit 060a1a0899)
2024-09-17 08:57:43 +02:00
A Thousand Ships
64cbde426f
[Editor] Don't show popup when clicking empty in Favorites
(cherry picked from commit d2a8b330d8)
2024-09-17 08:57:43 +02:00
bruvzg
b1c1c40250
[Windows] Use the same API for all OS_Windows::*_environment functions.
(cherry picked from commit 319bfa9965)
2024-09-17 08:57:43 +02:00
clayjohn
e09cada53f
Only use backbuffer mipmaps in SCREEN_TEXTURE when generated.
(cherry picked from commit d2f5c1a552)
2024-09-17 08:57:43 +02:00
Alexis Breust
2b05cf154a
Sky: No more auto-selecting REALTIME mode if radiance is not 256
(cherry picked from commit 44e526d3d5)
2024-09-17 08:57:43 +02:00
Arsh Panesar
26cc13705a
Fix AnimationPlayer crash when it's made the scene root
When an AnimationPlayer is made root of a scene,
the track links may become broken and clicking on
them will crash.

Current master branch also breaks node links when
AnimationPlayer is made scene root, and can also
crash the engine if another node was made scene
root prior to the AnimationPlayer.

This happens because when made root, the editor
loses track of AnimPlayer's root node. By keeping
a copy of the AnimPlayer's root_node, the track
links remain functional.

Fixes #91043.

(cherry picked from commit e905be8249)
2024-09-17 08:57:43 +02:00
Radiant
af8caffd0e
Fix shadow mesh recursion.
(cherry picked from commit 70860aafd8)
2024-09-17 08:57:43 +02:00
aaronp64
ec20c3ff76
Fix Array.sort_custom example code
Array.sort_custom descending sort example was comparing index 0, but had expected result based on comparing index 1.  Updated to use index 1 consistently.

(cherry picked from commit 39ca8b4e23)
2024-09-17 08:57:43 +02:00
aaronp64
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
kobewi
fc5e7c7411
Fix Path2D splitting
(cherry picked from commit 7e7a4f238b)
2024-09-17 08:57:42 +02:00
Giganzo
1e5d7a0907
Fix floating window corner radius
(cherry picked from commit 308186a89e)
2024-09-17 08:57:42 +02:00
Hilderin
4d0f10a543
Fix missing material override after two glb reimports
(cherry picked from commit 79d0254a2d)
2024-09-17 08:57:42 +02:00