Commit Graph

6657 Commits

Author SHA1 Message Date
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
ec052cd38a Add unsigned char cast ifdef. 2023-11-29 11:59:18 +02:00
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
eb81e8b2dc Prevent read-after-free in the queued CallableCustomStaticMethodPointer. 2023-11-23 23:22:08 +02:00
bfe66ab7cd Fixup thread-owned lambda bookkeeping on thread exit (take 2) 2023-11-23 18:50:20 +01:00
fe4850c0d0 Use mingw-std-threads in MinGW builds 2023-11-18 11:56:05 +01:00
47c7abc212 Merge pull request #84973 from dsnopek/gdextension-fix-compat-hashes
Check that `GDExtensionCompatHashes` are valid when generating `extension_api.json`
2023-11-16 14:53:39 +01:00
6ae6cc0bf5 Merge pull request #84815 from TokageItLab/array-animation
Rework blending method in `Variant` animation for `Int`/`Array`/`String`
2023-11-16 14:52:00 +01:00
5cf6d08dda Check that GDExtensionCompatHashes are valid when generating extension_api.json 2023-11-16 06:40:06 -06:00
80c9533810 Rework blending method in Variant animation for Int/Array/String 2023-11-16 21:37:18 +09:00