Commit Graph

6662 Commits

Author SHA1 Message Date
Rémi Verschelde 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
Rémi Verschelde 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
Haoyu Qiu 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
Rémi Verschelde de06aece82
Fix GCC 14 -Wtemplate-id-cdtor warnings
Fixes #91206.

(cherry picked from commit a8ff47b6d6)
2024-04-26 11:44:18 +02:00
Rémi Verschelde 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
Rémi Verschelde 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
Yorick de Wid 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
David Snopek be64b0dc37 Fix GDExtension hot reload for classes not created via `ClassDB::instantiate()` 2024-04-09 13:54:08 -05:00
Rémi Verschelde 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
Rémi Verschelde 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
A Thousand Ships 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
Pylgos 6f339b07f0
Fix Resource::get_rid override not working in GDExtension
(cherry picked from commit c2be2dfbde)
2024-04-08 15:48:30 +02:00
kobewi bfc72801fd
Ignore ERR_FILE_CANT_OPEN error when loading scene
(cherry picked from commit f0cbd388dc)
2024-04-08 15:48:30 +02:00
kobewi dc865a1ec6
Don't abort loading when ext_resource is missing
(cherry picked from commit 1de0415118)
2024-04-08 15:48:30 +02:00
A Thousand Ships 063edcbe3b
[Core] Prevent further infinite recursion when printing errors
(cherry picked from commit 14897f6dd7)
2024-04-08 15:48:28 +02:00
Mikhail Tishin d02b38d411
Add null check for gdextension deinitialization
(cherry picked from commit dc4c6cfb9b)
2024-03-11 23:26:08 +01:00
Aaron Franke 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
EterDelta b3fa724e9d
Expose NOTIFICATION_EXTENSION_RELOADED to ClassDB
(cherry picked from commit fee70558f8)
2024-03-11 23:22:11 +01:00
Mika Viskari 02e6c0ab95
Fix String::begins_with when both strings are empty
(cherry picked from commit 3026b566b0)
2024-03-11 18:08:11 +01:00
Matthew Edwards 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
nfrmtk 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
scgm0 2042283d32
Explicitly initialize all of `FileAccess::create_func[ACCESS_MAX]`
(cherry picked from commit 2dae53c316)
2024-03-11 18:02:27 +01:00
Pedro J. Estébanez 16f3652d10
Fix inaccuracies in the report of leaked objects
(cherry picked from commit a04a67ead6)
2024-03-11 18:01:54 +01:00
Pedro J. Estébanez a5aa6910bc
Avoid regressing in progress reporting in resource load
(cherry picked from commit f5ca58d32f)
2024-03-11 17:59:25 +01:00
bruvzg e35e97f027
[Pseudolocalization] Prevent out of bounds reads.
(cherry picked from commit e7bdb60e56)
2024-03-11 17:58:58 +01:00
rune-scape 7691c5fccd
Initialize pointers in a_star.cpp
(cherry picked from commit b6a53e62bc)
2024-03-11 17:58:44 +01:00
Stuart Carnie 486998bee5
fix: data race in PagedArray
(cherry picked from commit 70bfd5d065)
2024-03-11 17:58:04 +01:00
Jovan Gerodetti 04c312fbc9
Include name field in MethodInfo operator ==
(cherry picked from commit 179c92eb0b)
2024-03-11 17:57:25 +01:00
David Snopek 3971cbcff0
Fix `gdextension_compat_hashes.cpp` for double precision builds
(cherry picked from commit 445e3018f5)
2024-03-11 17:48:39 +01:00
Paul Joannon 630b0a00e2
Hint fallback property as node when it is a node
(cherry picked from commit e7c90e0884)
2024-03-11 17:40:28 +01:00
Rémi Verschelde 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
Pedro J. Estébanez 06988f8cd7
Undefine yet another macro from Windows headers
(cherry picked from commit bcc96441d6)
2024-03-11 00:11:29 +01:00
A Thousand Ships 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
Micky a92a2015f0 Fix missing autocompletion for inheriting classes
(cherry picked from commit ca2f340384)
2024-01-25 18:45:01 +01:00
jsjtxietian 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
Aaron Franke 3a8c04ea3c Add PackedRealArray as an alias for Vector<real_t>
(cherry picked from commit 3f469ee485)
2024-01-25 18:08:46 +01:00
Ricardo Buring 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
kobewi c285b726bb Fix file disappearing when renaming dependencies
(cherry picked from commit 397f0b31e4)
2024-01-25 17:19:41 +01:00
rsburke4 0224a60b43 Added error to catch conversion on invalid image
(cherry picked from commit dec2269bca)
2024-01-24 15:56:50 +01:00
bruvzg 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
Paul Joannon b959ab9848
Fix property groups overriding real properties
(cherry picked from commit decf3b21ae)
2023-12-07 10:27:08 +01:00
Yuri Sizov 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
A Thousand Ships b5e7b2c7a7
[Core] Fix crash when hashing empty `CharString`
(cherry picked from commit ca5ec6aec1)
2023-12-07 10:27:05 +01:00
A Thousand Ships 6cfe17cbcf
[Core] Prevent infinite recursion when printing errors
(cherry picked from commit d10617bb3b)
2023-12-07 10:27:05 +01:00
Mikael Hermansson 013c119100 Fix crash when using incompatible versions of Godot Jolt 2023-12-05 12:31:55 +01:00
bruvzg ec052cd38a
Add unsigned char cast ifdef. 2023-11-29 11:59:18 +02:00
Rémi Verschelde 4247244071
Merge pull request #85280 from bruvzg/custom_call_read_after_free
Prevent read-after-free in the queued CallableCustomStaticMethodPointer.
2023-11-24 00:00:52 +01:00
bruvzg eb81e8b2dc
Prevent read-after-free in the queued CallableCustomStaticMethodPointer. 2023-11-23 23:22:08 +02:00
Pedro J. Estébanez bfe66ab7cd Fixup thread-owned lambda bookkeeping on thread exit (take 2) 2023-11-23 18:50:20 +01:00