6666 Commits

Author SHA1 Message Date
36e2050eea Core: Sidestep GCC false-positives
(cherry picked from commit acdb8667b5)

Adds some more fixes for 4.5.

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2025-10-28 22:20:59 +01:00
0c12e633d4 Style: Apply fixes from clang-format 18.1.3 2025-04-25 15:40:13 +02:00
7d9ae94b20 Style: Apply fixes from codespell 2025-04-25 15:34:47 +02:00
0841c7af0b CI: Sync configuration with 4.4 branch
Includes cherry-picks of warning fixes from 8d1462c748
and template builds unit tests fixes from 17929a3443
and 832695eb2c.
2025-04-25 00:36:40 +02:00
def12f7cc4 Remove forward compat parsing of PackedVector4Array in binary format
The logic I implemented was lacking, and actually it's not useful as binary files saved by Godot 4.3
are not recognized due to the `ver_major > VERSION_MAJOR` check.

So even if the format version was unchanged, such files would still not be readable in 4.2.
2024-05-07 14:22:51 +02:00
7aacb098f0 Add forward compat parsing of PackedVector4Array
This new Variant type is being added in 4.3, and breaks compatibility with
earlier releases. By adding minimal parsing support (converting to plain Array)
we can at least open the scenes, and minimize the data loss when going back and
forth between minor versions.
2024-05-03 00:20:12 +02:00
4ade4ab92a Add support for reading text resource format 4
Co-Authored-By: Gilles Roudiere <gilles.roudiere@gmail.com>
2024-04-30 09:02:19 +08:00
de06aece82 Fix GCC 14 -Wtemplate-id-cdtor warnings
Fixes #91206.

(cherry picked from commit a8ff47b6d6)
2024-04-26 11:44:18 +02:00
8638b5ff32 Sync controller mappings DB with SDL 2 community repo
Synced with mdqinc/SDL_GameControllerDB@5b4efa3a20

(cherry picked from commit 1da02fa7be)
2024-04-25 13:04:50 +02:00
2d93cb544c Merge pull request #90449 from dsnopek/gdextension-hot-reload-not-classdb-instantiate-4.2
[4.2] Fix GDExtension hot reload for classes not created via `ClassDB::instantiate()`
2024-04-19 16:18:15 +02:00
e5ea748dcf FIX: Return if TCP is in STATUS_CONNECTED
If the `StreamPeerTCP` is polled and the TCP connection is `STATUS_CONNECTED` it should return after polling netsocket. Without `return` poll keeps calling `_sock->connect_to_host` and `connect()`.

(cherry picked from commit 61a2f5c534)
2024-04-16 13:47:32 +02:00
be64b0dc37 Fix GDExtension hot reload for classes not created via ClassDB::instantiate() 2024-04-09 13:54:08 -05:00
63f45cd75d Revert "Push p_original_path into load_paths_stack and sub_tasks instead of p_path."
This reverts commit 5cc432e7a1.
2024-04-09 13:07:15 +02:00
cf725c4b91 Sync controller mappings DB with SDL 2 community repo
Synced with mdqinc/SDL_GameControllerDB@4c9b8dace8

(cherry picked from commit 6772047e50)
2024-04-08 23:07:16 +02:00
2114489e23 [Core] Fix ResourceLoader.load cache with relative paths
Paths were not simplified meaning that `res://foo.bar` was treated
differently from `./foo.bar` and similar

(cherry picked from commit 0274877def)
2024-04-08 15:48:30 +02:00
6f339b07f0 Fix Resource::get_rid override not working in GDExtension
(cherry picked from commit c2be2dfbde)
2024-04-08 15:48:30 +02:00
bfc72801fd Ignore ERR_FILE_CANT_OPEN error when loading scene
(cherry picked from commit f0cbd388dc)
2024-04-08 15:48:30 +02:00
dc865a1ec6 Don't abort loading when ext_resource is missing
(cherry picked from commit 1de0415118)
2024-04-08 15:48:30 +02:00
063edcbe3b [Core] Prevent further infinite recursion when printing errors
(cherry picked from commit 14897f6dd7)
2024-04-08 15:48:28 +02:00
d02b38d411 Add null check for gdextension deinitialization
(cherry picked from commit dc4c6cfb9b)
2024-03-11 23:26:08 +01:00
16d154e8fd Fix GLTF exporting invalid meshes and attempting to export gizmo meshes
(cherry picked from commit 2d38c980ee)
2024-03-11 23:25:27 +01:00
b3fa724e9d Expose NOTIFICATION_EXTENSION_RELOADED to ClassDB
(cherry picked from commit fee70558f8)
2024-03-11 23:22:11 +01:00
02e6c0ab95 Fix String::begins_with when both strings are empty
(cherry picked from commit 3026b566b0)
2024-03-11 18:08:11 +01:00
5cc432e7a1 Push p_original_path into load_paths_stack and sub_tasks instead of p_path.
(cherry picked from commit 7565d1f3ab)
2024-03-11 18:03:24 +01:00
ACB
f4106e5fb3 Fix FileAccessMemory off by one error in eof_reached
(cherry picked from commit 2561f6fc52)
2024-03-11 18:02:59 +01:00
c00caa766e add check for negative buffer_size inside start_(de)compression method.
(cherry picked from commit da886006a0)
2024-03-11 18:02:44 +01:00
2042283d32 Explicitly initialize all of FileAccess::create_func[ACCESS_MAX]
(cherry picked from commit 2dae53c316)
2024-03-11 18:02:27 +01:00
16f3652d10 Fix inaccuracies in the report of leaked objects
(cherry picked from commit a04a67ead6)
2024-03-11 18:01:54 +01:00
a5aa6910bc Avoid regressing in progress reporting in resource load
(cherry picked from commit f5ca58d32f)
2024-03-11 17:59:25 +01:00
e35e97f027 [Pseudolocalization] Prevent out of bounds reads.
(cherry picked from commit e7bdb60e56)
2024-03-11 17:58:58 +01:00
7691c5fccd Initialize pointers in a_star.cpp
(cherry picked from commit b6a53e62bc)
2024-03-11 17:58:44 +01:00
486998bee5 fix: data race in PagedArray
(cherry picked from commit 70bfd5d065)
2024-03-11 17:58:04 +01:00
04c312fbc9 Include name field in MethodInfo operator ==
(cherry picked from commit 179c92eb0b)
2024-03-11 17:57:25 +01:00
3971cbcff0 Fix gdextension_compat_hashes.cpp for double precision builds
(cherry picked from commit 445e3018f5)
2024-03-11 17:48:39 +01:00
630b0a00e2 Hint fallback property as node when it is a node
(cherry picked from commit e7c90e0884)
2024-03-11 17:40:28 +01:00
adf759cec0 Sync controller mappings DB with SDL2 community repo
Synced with gabomdq/SDL_GameControllerDB@232c738ce0

(cherry picked from commit 10445d80d8)
2024-03-11 15:00:42 +01:00
06988f8cd7 Undefine yet another macro from Windows headers
(cherry picked from commit bcc96441d6)
2024-03-11 00:11:29 +01:00
ad57a98eb0 [Core] Fix AABB.encloses failing on shared upper bound
This differs from `Rect2(i)` and was fixed for those classes in the past

(cherry picked from commit b4191bf8f6)
2024-01-25 18:56:36 +01:00
a92a2015f0 Fix missing autocompletion for inheriting classes
(cherry picked from commit ca2f340384)
2024-01-25 18:45:01 +01:00
a47a07d13b Fix FileAccessPack::get_buffer will update pos past the length of file
(cherry picked from commit 68a6fe81ab)
2024-01-25 18:32:36 +01:00
3a8c04ea3c Add PackedRealArray as an alias for Vector<real_t>
(cherry picked from commit 3f469ee485)
2024-01-25 18:08:46 +01:00
cf767ddf29 Fix operator documentation in GDExtension API dump with docs
The type of the right operand is now taken into account.

(cherry picked from commit 82afe58aca)
2024-01-25 17:38:15 +01:00
c285b726bb Fix file disappearing when renaming dependencies
(cherry picked from commit 397f0b31e4)
2024-01-25 17:19:41 +01:00
0224a60b43 Added error to catch conversion on invalid image
(cherry picked from commit dec2269bca)
2024-01-24 15:56:50 +01:00
4cadc50bf7 Do not reload resources and send notification if locale is not changed.
(cherry picked from commit 829349d2ca)
2023-12-07 10:27:09 +01:00
b959ab9848 Fix property groups overriding real properties
(cherry picked from commit decf3b21ae)
2023-12-07 10:27:08 +01:00
4564a8513a Correctly check scripts that must inherit EditorPlugin
Also updates some error messages related to this kind of check
across the codebase.

(cherry picked from commit bc1949d797)
2023-12-07 10:27:06 +01:00
b5e7b2c7a7 [Core] Fix crash when hashing empty CharString
(cherry picked from commit ca5ec6aec1)
2023-12-07 10:27:05 +01:00
6cfe17cbcf [Core] Prevent infinite recursion when printing errors
(cherry picked from commit d10617bb3b)
2023-12-07 10:27:05 +01:00
013c119100 Fix crash when using incompatible versions of Godot Jolt 2023-12-05 12:31:55 +01:00