Commit Graph

71760 Commits

Author SHA1 Message Date
Thaddeus Crews
845ddb4bf3
Merge pull request #102597 from kitbdev/fix-te-line-guideline-pos
Fix CodeEdit line length guideline zoomed position
2025-02-11 09:13:23 -06:00
Thaddeus Crews
cc678ec312
Merge pull request #102675 from Calinou/doc-canvasitem-draw-dashed-line
Document `CanvasItem.draw_dashed_line()`'s `dash` and `align` parameters
2025-02-11 09:13:22 -06:00
Thaddeus Crews
b6894b9a45
Merge pull request #102691 from bruvzg/mix_rates
[AudioStreamGenerator] Add mixing rate presets, update docs.
2025-02-11 09:13:20 -06:00
Thaddeus Crews
a0f10a28a6
Merge pull request #100933 from Synzorasize/fix_100889
Fix parsing Resource type as value type of a Dictionary
2025-02-11 09:13:18 -06:00
Thaddeus Crews
c58e718cde
Merge pull request #101071 from mihe/jolt/less-query-allocations
Improve performance of certain physics queries when using Jolt Physics
2025-02-11 09:13:16 -06:00
Thaddeus Crews
427d8086f2
Merge pull request #102492 from m4gr3d/android_editor_support_game_tab
Add support for embedding game process in the Android Editor
2025-02-11 09:13:05 -06:00
Hugo Locurcio
d1af005fed
Document CanvasItem.draw_dashed_line()'s dash and align parameters 2025-02-11 15:15:46 +01:00
Riteo
54755a27e9 Wayland: Unstuck keys with same keycode
This fixes once and for all the core issue of different Godot `keycode`s
released from the same raw XKB keycode.

The `InputEventKey` `keycode` value _should_ map to the "unmodified"
key, but unfortunately there's an ambiguity with their encoding for
"special" keys ("delete", "insert", etc.), in witch they ignore their
unicode representation. This means that a key that is special when plain
but a character when modified would never be properly picked up, so we
do indeed change its keycode. As a consequence of this exception, some
Godot keys never receive release events and get "stuck".

This patch adds an extra check through an `HashMap` to "unstuck" keys
that changed while having the same keycode.

I also could not resist simplifying a bit the regular key event
generation method but this makes things more consistent and predictable
IMO.
2025-02-11 13:16:16 +01:00
Mikael Hermansson
5d2a54e6b1 Improve performance of certain physics queries when using Jolt Physics 2025-02-11 11:52:05 +01:00
Fredia Huya-Kouadio
7495a8a02e Add support for embedding game process in the Android Editor
- Implement Android editor specific `EmbeddedGodotGame` to support embedding the game window in the Android editor
2025-02-11 02:20:18 -08:00
Rémi Verschelde
172fc62c80 Merge pull request #102698 from HolonProduction/no-null-safety
Autocompletion: Account for invalid annotations when making arghint
2025-02-11 10:54:42 +01:00
Rémi Verschelde
65b81646a4 Merge pull request #102688 from caleb98/master
Fix TileMapLayer bug where dirty cells could be marked twice
2025-02-11 10:54:39 +01:00
Rémi Verschelde
dd8a55d899 Merge pull request #102683 from Calinou/editor-input-map-keep-focus-on-new-entry
Fix focus being lost after adding a new input map entry in the editor
2025-02-11 10:54:35 +01:00
Rémi Verschelde
b1b9a178f9 Merge pull request #102678 from KoBeWi/uid_open_dialog
Improve path handling in EditorQuickOpenDialog
2025-02-11 10:54:31 +01:00
Rémi Verschelde
e912241f4d Merge pull request #102674 from Riteo/waiting-for-frame
Wayland: Fix engine stalls while waiting frames
2025-02-11 10:54:28 +01:00
Rémi Verschelde
f9c233c369 Merge pull request #102673 from akien-mga/linux-wayland-so_wrap-disabled
Wayland: Fix build config with `so_wrap` disabled
2025-02-11 10:54:24 +01:00
Rémi Verschelde
5460fe3994 Merge pull request #102653 from lawnjelly/fti_fix_client_ticking_4
Physics Interpolation - Fix client interpolation pump
2025-02-11 10:54:21 +01:00
Rémi Verschelde
ea0226c65d Merge pull request #102652 from lawnjelly/fti_auto_reset_mode_change_4
Physics Interpolation - Auto-reset on `set_physics_interpolation_mode()`
2025-02-11 10:54:18 +01:00
Rémi Verschelde
0d4d70d5a6 Merge pull request #102587 from bruvzg/s_pa_tst
[Tests] Add `Packed*Array` `to_byte_array` variant call tests.
2025-02-11 10:54:14 +01:00
Rémi Verschelde
3a44dc9894 Merge pull request #102397 from bruvzg/fd_select
[FileDialog] Update filename/buttons state when first item is selected on folder/filter change.
2025-02-11 10:54:11 +01:00
Rémi Verschelde
f3e20342f9 Merge pull request #102332 from Maran23/escape-close
Fix Escape does not work the first time when pressed at the Find(Replace)Bar
2025-02-11 10:54:07 +01:00
Rémi Verschelde
62d22ffa6b Merge pull request #98216 from pafuent/fixing_log_rotation
Fix file logging log rotation
2025-02-11 10:54:01 +01:00
Pāvels Nadtočajevs
3965bdfd62 [AudioStreamGenerator] Add mixing rate presets, update docs. 2025-02-11 11:22:34 +02:00
Pāvels Nadtočajevs
ecff011671 [FileDialog] Update filename/buttons state when first item is selected on folder/filter change. 2025-02-11 11:18:23 +02:00
HolonProduction
62eebf1266 Autocompletion: Account for invalid annotations when making arghint 2025-02-11 09:17:22 +01:00
Caleb Cassady
7404873b66 Fix TileMapLayer bug where dirty cells could be marked twice
When using runtime data in a TileMapLayer, calling notify_runtime_tile_update
can cause error messages to be printed to the console if the same cell has been
set or erased in the same frame. This could be partially worked around by using
call_deferred on notify_runtime_tile_update, but the problem could re-emerge if
those updates were being made in coroutines.

This commit addresses the issue by adding an additional check to the dirty cell
marking of the TileMapLayer when notify_runtime_tile_update is called. This
check ensures that the cell has not already been added to the dirty cell list,
preventing the condition that causes the error message.
2025-02-10 22:18:10 -05:00
Riteo
cbd68eb403 Wayland: Fix engine stalls wihle waiting frames
There were two edge cases in the frame waiting logic (aka manual frame
throttling or emulated vsync) which would cause the editor to stall in
one way or another:

 1. Waiting right after starting the editor would cause a deadlock
between both threads until something happened in the Wayland event
queue, in turn unblocking the Wayland thread and kickstartin the whole
thing;

 2. Starting the editor (and probably other long-loading stuff) without
low consumption mode would suspend the window and never commit its
surfaces, thus never signaling the compositor that we want frame events.
2025-02-11 01:33:36 +01:00
Hugo Locurcio
5c9569cd35 Fix focus being lost after adding a new input map entry in the editor
This allows adding multiple actions in a row by pressing Enter
after each action, without needing to click the field again
every time.
2025-02-11 00:59:30 +01:00
Stuart Carnie
90b2d4b844 2D: Fix free of invalid ID 2025-02-11 08:17:29 +11:00
kobewi
7f0d81c433 Improve path handling in EditorQuickOpenDialog 2025-02-10 22:16:24 +01:00
Pablo Andres Fuente
d1338528f9 Fix file loggin log rotation
Fixes #97066

`RBSet` were used on `RotatedFileLogger` because it guarantees that
iterating it is done via `operator<`. This is important because
`RotatedFileLogger` depends on this behavior to delete the oldest log file.
On #61194 `HashSet` was added and all `RBSet` uses were replaced by
`HashSet`.
When that happened, the iteration in order is guaranteed to be the insertion
order, wich made that `RotatedFileLogger` delete the newest log file.
As a bonus, I added unit test for `RotatedFileLogger` and `CompositeLogger`.
2025-02-10 21:57:07 +01:00
Rémi Verschelde
19a30bb723 Wayland: Fix build config with so_wrap disabled
We should only include the vendored headers for Wayland and libdecor-0 when
we use `so_wrap`, i.e. when we *don't* build against system libraries.

The libdecor-0 pkg-config file includes the `libdecor-0/` prefix already,
so its header should be included without it, and likewise in our so wrappers.
Fixes #102671.
2025-02-10 21:42:25 +01:00
Thaddeus Crews
296de7da83
Merge pull request #102614 from jrouwe/102544
[Jolt Physics] Fix ghost collision issue on dense triangle meshes
2025-02-10 12:21:36 -06:00
Thaddeus Crews
4bac259ced
Merge pull request #101435 from YYF233333/remote_tree_fix2
Return fast for built-in class icon
2025-02-10 12:21:35 -06:00
Thaddeus Crews
c89ded23a6
Merge pull request #102603 from havi05/itemlist-fix-textoverrun-fixed-icon
Itemlist: Fix `text_overrun` when using `fixed_icon_size`
2025-02-10 12:21:34 -06:00
Thaddeus Crews
4b644ed1f5
Merge pull request #102341 from SheepYhangCN/rendering-driver-fallback-moltenvk
Implement Fallback to Vulkan for MoltenVK
2025-02-10 12:21:33 -06:00
Thaddeus Crews
c90fd7f3da
Merge pull request #98066 from TCROC/fix-android-mono-export
Fix Android mono export with 2 or more cpu architectures fails
2025-02-10 12:21:32 -06:00
Thaddeus Crews
6a3bf28197
Merge pull request #88114 from AThousandShips/dupli_fix
Prevent some internal nodes being duplicated in Controls
2025-02-10 12:21:31 -06:00
Thaddeus Crews
0b9fd7e190
Merge pull request #102627 from raulsntos/dotnet/android-export-validate-tfm
C#: Validate project TFM for Android template exports
2025-02-10 12:21:30 -06:00
Thaddeus Crews
9c7a42b7be
Merge pull request #102659 from AThousandShips/fix_tooltip_crash
[Editor] Prevent deferred tooltip update crash
2025-02-10 12:21:29 -06:00
Thaddeus Crews
db986ee9e3
Merge pull request #102664 from KoBeWi/calm_down_it's_just_a_missing_icon_bro
Silence missing icon error if UID cache is missing
2025-02-10 12:21:28 -06:00
Thaddeus Crews
66b0effe82
Merge pull request #101989 from MartinMajewski/master
Git-ignore built `Godot.app` package
2025-02-10 12:21:27 -06:00
Raul Santos
70ff213de5
C#: Validate project TFM for Android template exports
The C# Android export template includes `.jar` dependencies from .NET 8.0, so other TFMs are not supported.
2025-02-10 17:19:05 +01:00
Giganzo
cedcc2444e Add changeable freelook speed in Game Window 2025-02-10 17:18:52 +01:00
kobewi
266b569641 Silence missing icon error if UID cache is missing 2025-02-10 17:09:34 +01:00
Travis Lange
5e2fd7b1d7 fix android mono export causing conflicts 2025-02-10 10:09:52 -05:00
Michael Alexsander
a32d3663c4
Fix popup shadows misbehaving with content_scale_factor 2025-02-10 11:55:08 -03:00
AThousandShips
4b4bfe7d0e
[Editor] Prevent deferred tooltip update crash
Caused by `TreeItem`s being accessed after clearing the tree on reset.
2025-02-10 15:18:04 +01:00
A Thousand Ships
5dcab0e606
Prevent some internal nodes being duplicated in Controls 2025-02-10 13:27:08 +01:00
SheepYhangCN
c0eec97e98 macOS: Implement fallback from Metal to Vulkan for x86_64 2025-02-10 13:23:46 +01:00