Thaddeus Crews
ca26922a19
Integrate `.pre-commit-config.yaml`
...
(cherry picked from commit e0d363aad8
)
2024-07-17 09:56:32 -05:00
Richard Hozák
6ba31a1800
Fix warnings emitted with -Wall
...
(cherry picked from commit 8c6cc1ec15
)
2024-06-14 10:37:27 -05:00
David Snopek
7b93607779
Fix NOTIFICATION_POSTINITIALIZE sent twice to native parent class
...
(cherry picked from commit 06373ce1cf
)
2024-05-17 17:11:27 -05:00
A Thousand Ships
11cd9a0727
[Math] Add `is_finite` methods
...
(cherry picked from commit d389171905
)
2024-05-17 16:54:00 -05:00
Chris Cranford
a75e33c333
Implement to/from dict helpers for PropertyInfo/MethodInfo
...
(cherry picked from commit 2a041b5240
)
2024-05-17 16:53:43 -05:00
thimenesup
e897dbe58a
Fix Projection create_orthogonal being incorrect
...
Title
(cherry picked from commit e4ae69f607
)
2024-04-17 11:00:56 -05:00
Thaddeus Crews
9e48c45bfc
Enforce template syntax `typename` over `class`
...
(cherry picked from commit 87f5fb0691
)
2024-04-08 11:39:21 -05:00
David Snopek
76d6ce7136
Avoid creating most objects that Godot is going to use placement new to initialize
...
(cherry picked from commit c4fde852e6
)
2024-04-08 11:30:23 -05:00
bruvzg
08da55cd0b
[Core] Improve `CowData` and `Memory` metadata alignment.
...
(cherry picked from commit b173a4d935
)
2024-03-11 13:11:26 -05:00
bruvzg
6202bf141e
Switch to 64-bit ints.
...
(cherry picked from commit 59a5a8b104
)
2024-03-11 12:59:19 -05:00
David Snopek
e9273e8528
Avoid error from -Werror=type-limits on GCC 11
...
(cherry picked from commit cad5be53b1
)
2024-01-22 15:53:49 -06:00
David Snopek
b1bd58d7da
Send NOTIFICATION_POSTINITIALIZE to extension classes
...
(cherry picked from commit 20c4e843b0
)
2024-01-22 15:53:49 -06:00
bruvzg
b622b11df3
[iOS] Fix initialisation/termination of multiple statically linked extensions.
...
(cherry picked from commit adc9def046
)
2024-01-22 15:53:49 -06:00
Thaddeus Crews
e8b6887b36
Add missing int→Variant conversions
...
(cherry picked from commit bcac96c8c2
)
2024-01-22 15:53:49 -06:00
gilzoide
698da13d66
Fix return value and r_valid value in Variant::iter_init and iter_next
...
(cherry picked from commit 60dfa3445a
)
2023-10-22 14:47:10 -05:00
David Snopek
f7ffc4fe4d
Automatically register only engine classes whose header has been included
...
(cherry picked from commit b507b3e591
)
2023-10-22 14:46:26 -05:00
Matthew Murphy
857d8e3a56
Fix variant call compiler error
...
Co-authored-by: David Snopek <dsnopek@gmail.com>
(cherry picked from commit ca3e25de04
)
2023-10-09 08:43:23 -05:00
David Snopek
ec6e51b3a4
Handle missing instance binding callbacks by finding the closest parent
...
(cherry picked from commit 52ca3ef547
)
2023-10-09 08:42:55 -05:00
A Thousand Ships
205beacc5b
Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicable
...
(cherry picked from commit 1e5767693e
)
2023-10-09 08:42:16 -05:00
David Snopek
590e267902
Load 'print_error_with_message' function
...
(cherry picked from commit 634ed09ec0
)
2023-09-19 21:29:29 -05:00
David Snopek
3be7ec4162
Check that GDExtension is opened by compatible Godot version
...
(cherry picked from commit fecb2959b4
)
2023-09-19 21:27:40 -05:00
David Snopek
011965d864
Attempt to fully implement CharString
...
(cherry picked from commit 4df112cd95
)
2023-08-10 09:06:09 -05:00
Mikael Hermansson
4b1072e4da
Remove unused free-standing `initialize_level` and `deinitialize_level`
2023-06-30 19:36:46 +02:00
Kehom
20be441026
Unregister custom classes in reverse registration order
2023-06-19 11:04:11 -03:00
Rémi Verschelde
130644c061
Merge pull request #1138 from dsnopek/editor-plugins-deinitialize
...
Automatically remove editor plugins when deinitializing GDExtension
2023-06-19 10:43:34 +02:00
Andy Maloney
db2394dbe7
Identifiers containing double underscore are reserved according to the C++ standard
...
Rename __* to _gde_*
https://timsong-cpp.github.io/cppwp/n3337/global.names
https://en.cppreference.com/w/cpp/language/identifiers
Identifiers appearing as a token or preprocessing token (i.e., not in user-defined-string-literal like operator ""id) (since C++11) of one of the following forms are reserved:
- identifiers with a double underscore anywhere;
- identifiers that begin with an underscore followed by an uppercase letter;
- in the global namespace, identifiers that begin with an underscore.
2023-06-15 20:45:01 -04:00
David Snopek
d28a3cbbd5
Automatically remove editor plugins when deinitializing GDExtension
2023-06-13 14:24:33 -05:00
David Snopek
ee5cf3a11d
Merge pull request #1137 from dsnopek/no-more-legacy-mode
...
Clarify error message because there isn't a legacy Godot 4.0 mode anymore
2023-06-08 10:11:29 -05:00
David Snopek
3074d22815
Clarify error message because there isn't a legacy Godot 4.0 mode anymore
2023-06-08 09:42:03 -05:00
David Snopek
59bffc94a8
Correctly load gdextension_interface_print_error
2023-05-31 01:32:44 -05:00
Rémi Verschelde
2078c00bab
Merge pull request #1114 from dsnopek/editor-plugins
...
Add support for adding/removing editor plugins
2023-05-26 11:04:35 +02:00
David Snopek
e75ebffb70
Add support for adding/removing editor plugins
2023-05-16 22:02:35 -05:00
David Snopek
431e30bc32
Ensure GDExtension class is the correct type for the Godot engine class
2023-05-16 15:18:48 -05:00
David Snopek
a5c6ca5920
Update to load function pointers for GDExtension interface
2023-05-09 21:45:48 -05:00
bruvzg
ba4b50118d
Fix incorrect memory allocation in release builds.
...
Co-authored-by: lightyears <lightyears1998@hotmail.com>
2023-02-21 15:32:26 +02:00
Zhehang Ding
07c914b479
Fix compilation error: const GDExtensionStringPtr -> GDExtensionConstStringPtr
2023-02-14 18:53:11 -08:00
Jan Haller
706006ec83
Update array_set_typed() call to use GDExtensionVariantType instead of uint32_t
2023-02-09 11:12:51 +01:00
Rémi Verschelde
fccceb8736
Merge pull request #1011 from mihe/error-macros
...
Update error macros to match core
2023-02-07 13:47:51 +01:00
bruvzg
37f6e35974
Update typed array API to match "GDScript: Fix typed arrays".
2023-01-31 11:28:55 +02:00
bruvzg
40d3cfd97b
Move Array:set_typed to internal GDExtension structure.
2023-01-30 13:27:25 +02:00
Mikael Hermansson
6b92eda819
Added missing `string.hpp` include in `transform2d.cpp`
2023-01-22 17:35:24 +01:00
Mikael Hermansson
d174b47e51
Update error macros to match core
2023-01-22 14:24:57 +01:00
Andy Maloney
1ae0147aad
Fix sign comparison warnings in class_db.cpp
...
Part of #999
2023-01-19 08:30:08 -05:00
bruvzg
abca497b72
Expose some low level functions and String operators.
2023-01-19 13:12:21 +02:00
Fabio Alessandrelli
69b525494b
Merge pull request #1001 from Faless/ext/basis_abs
...
Fix Basis::scaled_orthogonal using incorrect abs function.
2023-01-19 10:16:51 +01:00
Fabio Alessandrelli
72a7c61750
Fix Basis::scaled_orthogonal using incorrect abs function.
2023-01-19 02:53:53 +01:00
Fabio Alessandrelli
d64d97cb17
Fix Variant::can_convert[_strict] returning gibberish.
...
An uninitialized value was being returned instead of the function return
value.
2023-01-19 02:17:53 +01:00
Rémi Verschelde
cf3d995e8c
Merge pull request #997 from asmaloney/fix-shadow-eulerorder
...
Fix a shadowed enum (EulerOrder)
2023-01-18 18:36:21 +01:00
Rémi Verschelde
0dfe0d0166
Merge pull request #983 from rburing/variant_to_from_objectid
...
Add conversions between `Variant` and `ObjectID`
2023-01-18 11:41:57 +01:00
Andy Maloney
dbd43ac107
Fix a shadowed enum (EulerOrder)
...
Use the global constants.
2023-01-17 18:38:24 -05:00