8710 Commits

Author SHA1 Message Date
20c59d6924 Core: Sidestep GCC false-positive warnings
(cherry picked from commits acdb8667b5
and 6733345f73)

Adds some more fixes for 4.5.

Co-authored-by: Lukas Tenbrink <lukas.tenbrink@gmail.com>
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2025-10-28 14:07:12 +01:00
3ac14dfe01 Revert "SCons: Add CPPEXTPATH for external includes"
(cherry picked from commit b17aa3343a)
2025-10-08 02:04:05 +02:00
452332621f Revert "Initialize Quaternion variant with identity"
This reverts commit a52de93373.

This may be correct, but it breaks compatibility so it shouldn't be
cherry-picked to stable branches.
2025-10-08 01:47:13 +02:00
a156af98c3 Remove dependency of variant.h in print_string.h
(cherry picked from commit 05dae23f18)
Co-Authored-By: Lukas Tenbrink <lukas.tenbrink@gmail.com>
Co-Authored-By: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2025-10-06 12:17:32 -05:00
28f4d5d6a7 Change "reserve called with a capacity smaller than the current size" error message to a verbose message.
(cherry picked from commit c6f57c7a55)
2025-10-06 10:40:25 -05:00
2cb6d30dd1 GDExtension: Prevent breaking compatibility for unexposed classes that can only be created once
(cherry picked from commit 2c707a911f)
2025-10-06 09:51:30 -05:00
354b02f92d Make navmesh rasterization errors more lenient
Make navmesh rasterization on the navigation regions and map more lenient by starting out with a lower internal cell scale by default and changing the merge error to just warning that can be toggled.

(cherry picked from commit 19df15f1dc)
2025-09-30 11:36:26 -05:00
a52de93373 Initialize Quaternion variant with identity
(cherry picked from commit c0e36dc493)
2025-09-30 11:36:02 -05:00
928ee70231 add codeblock indentation back to --dump-extension-api-with-docs
xml codeblock indentation was changed from spaces to tabs but the tabs
were being replaced with empty strings when exported with
--dump-extension-api-with-docs, this is small change so that tab
characters are no longer replaced.

(cherry picked from commit e9131550b1)
2025-09-22 08:31:16 -05:00
777649d574 Check for NUL characters in string parsing functions.
(cherry picked from commit 0d700e53f3)
2025-09-22 08:31:13 -05:00
68ea3d8aad Corrected the order of DiagonalMode in Add Property
(cherry picked from commit 6a288c9275)
2025-09-16 09:57:28 -05:00
4e62b91749 Avoid repeated _copy_on_write() calls in Array::resize()
Updated Array::resize() to call ptrw() once before looping to initialize typed array elements, instead of accessing each through .write[].

(cherry picked from commit 4c3f2be16d)
2025-09-16 09:56:56 -05:00
6339f31a02 Merge pull request #109770 from RandomShaper/fix_signal_antifree
Fix regression in mechanism to hold objects while emitting
2025-09-01 19:42:13 -07:00
52a5644b5f Merge pull request #108214 from Nintorch/fix-joypad-vendor-product
Fix `Input.get_joy_info()` regression after the SDL input driver PR
2025-09-01 11:14:12 -05:00
f28acf97d0 Fix Input.get_joy_info() regression
SDL input driver did not have the "xinput_index", "raw_name", "vendor_id" and "product_id" fields for this method and exposed an additional, essentially useless for the users "mapping_handled" field. This commit fixes these issues.
2025-08-29 22:13:40 +05:00
a7f224375a Fix classdb_register_extension_class* documentation in core/extension/gdextension_interface.h 2025-08-28 22:11:14 +02:00
a25846507d Fix regression in mechanism to hold objects while emitting 2025-08-28 18:23:27 +02:00
221731f30e Merge pull request #110003 from WinnerWind/fix-zero-threadcount
Revert "Prevent crashing if `max_threads` is zero."
2025-08-27 13:39:44 -05:00
976016b701 Revert "Prevent crashing if max_threads is zero."
This reverts commit a1788e09bf.
2025-08-27 09:02:34 +05:30
b432e108d5 Merge pull request #109791 from Talkashie/master
Typo cleanup pass
2025-08-21 18:39:37 -05:00
610a5bd65b Merge pull request #109276 from bruvzg/sym_copy
Fix symlink copy in `DirAccess::copy_dir`.
2025-08-20 13:04:23 -05:00
bc7e68dfd1 Typos 2025-08-19 18:32:59 -05:00
b2e4c4f334 Fix typo - is_deprecated was being set twice, skipping is_experimental. 2025-08-19 13:54:41 +02:00
f5152699bc Merge pull request #108768 from WinnerWind/fix-zero-threadcount
FIX: Prevent crashing if `max_threads` is zero.
2025-08-18 08:29:04 -05:00
a1788e09bf Prevent crashing if max_threads is zero.
Adds a note in the docs that a thread count of 0 has the same effect as a thread count of -1.

Change language of WorkerThreadPool in ProjectSettings

Co-Authored-By: Tomasz Chabora <kobewi4e@gmail.com>
2025-08-17 20:12:41 +05:30
8892a8d362 Merge pull request #109612 from dsnopek/emit-signal-no-alloca
Don't use `alloca()` in `Object::emit_signalp()` to prevent stack overflow
2025-08-15 12:58:46 -05:00
3eed53686b Don't use alloca() in Object::emit_signalp() to prevent stack overflow 2025-08-14 09:54:59 -05:00
5033a6af07 Never duplicate Scripts when duplicating resources recursively
This allows to duplicate PackedScenes safely
Fixes #108220
2025-08-14 10:26:48 -03:00
10fd7163d4 Add methods to check which event first triggered "just pressed/released" state. 2025-08-12 16:25:23 +03:00
b1792e5fb5 Merge pull request #109309 from dsnopek/gdextension-startup-callback-after-reload
GDExtension: Call startup callback only after reload is fully finished
2025-08-07 10:40:35 -05:00
4841add19a Fixed local_to_scene duplication of typed dictionary. 2025-08-06 17:04:35 -05:00
65eb664352 Merge pull request #109310 from Yarwin/fix-gdextension-add-editor-plugin-during-initialization-level-editor
Postpone adding new extension plugins to the editor
2025-08-06 12:01:21 -05:00
395b0f0a3d Merge pull request #103635 from BlueCube3310/rgb565-fix
Fix Image format RGB565 conversion and rendering
2025-08-06 12:01:17 -05:00
5f402da946 Merge pull request #109240 from bruvzg/scr_log_unreg
Automatically unregister loggers when script language is deinitialized.
2025-08-06 12:01:14 -05:00
92d9227d4a GDExtension: Call startup callback only after reload is fully finished 2025-08-05 08:30:39 -05:00
1aca96d139 Postpone adding new extension plugins to the editor.
----

Extension EditorPlugins added during Hot Reload on Initialization level
Editor were being attached to the scene tree before all the GDExtension
Classes (such as already loaded resources) are re-initialized.
2025-08-04 21:57:22 +02:00
19dbfec777 Fix symlink copy in DirAccess::copy_dir. 2025-08-03 19:52:48 +03:00
62dc131d74 Merge pull request #109172 from mihe/printraw-overflow
Fix `printraw` causing infinite recursion in `Logger._log_message`
2025-08-03 10:51:16 -05:00
638c6a5659 Fix Image format RGB565 conversion 2025-08-03 16:28:13 +02:00
9fd98410df Automatically unregister loggers when script language is deinitialized. 2025-08-02 18:29:00 +03:00
c2202d36c1 Merge pull request #103838 from ebeem/master
Core: Fix translation remaps incorrectly falling back
2025-08-01 11:45:22 -05:00
761f8df597 Merge pull request #109016 from Rindbee/use-undo_redo-to-track-property-changes
Use `EditorUndoRedoManager` to track the property changes of the configured `InputEvent` in the plugin
2025-08-01 11:45:20 -05:00
c5d2033e98 Merge pull request #109123 from beicause/fix-img-nearest-cubic-resize-bias
Fix `Image` nearest and cubic resizing bias
2025-08-01 11:45:13 -05:00
9add19a4ad Core: Fix translation remaps incorrectly falling back 2025-08-01 19:23:06 +03:00
494471dda2 Fix printraw causing infinite recursion in Logger._log_message 2025-07-31 20:24:47 +02:00
00a0512854 Merge pull request #109151 from clayjohn/WTP-low-priority-threads
Allow processing low priority threads on calling thread in the WTP.
2025-07-31 10:39:13 -05:00
0d10e85b88 Merge pull request #109122 from mihe/ext-resource-id-caching
Fix external resource IDs being lost for default properties
2025-07-31 10:38:45 -05:00
d0826b0bfe Fix external resource IDs being lost for default properties 2025-07-31 16:57:35 +02:00
2a8ac1c05b Allow processing low priority threads on calling thread in the WTP.
This fixes a recent regression. In theory, low priority tasks should always go to the queue and never be executed on the calling thread. However, when using NO_THREADS build, all tasks need to execute on the calling thread.
2025-07-30 23:15:38 -07:00
a32b59622f Fix Image nearest and cubic resizing bias 2025-07-30 23:54:12 +08:00