Commit Graph

280 Commits (4ec54f32b8d5c567ad616e27a0b2a893a7a8d2e9)

Author SHA1 Message Date
David Snopek 253e095c81
Merge pull request #1581 from dsnopek/classdb-add-virtual-method-arg-metadata-size
Fix crash in `ClassDB::add_virtual_method()` if arguments metadata is the wrong size
2024-11-05 09:18:01 -06:00
David Snopek 42e398e4e2 Update for new NOTIFICATION_POSTINITIALIZE handling 2024-10-29 16:29:24 -05:00
David Snopek ca5179f7d7
Merge pull request #1594 from dsnopek/macos-thread-local
Avoid `thread_local` on MacOS to prevent issues with hot reload
2024-10-29 15:39:49 -05:00
David Snopek 1e169bb809 Fix crash in `ClassDB::add_virtual_method()` if arguments metadata is the wrong size 2024-10-29 13:22:12 -05:00
David Snopek fa3dfa0e3c
Merge pull request #1591 from dsnopek/variant-object-instance-id
Directly get object instance ID from `Variant` and implement `Variant::get_validated_object()`
2024-10-29 13:10:12 -05:00
David Snopek 2004af63a0 Sync `Quaternion` with the version in Godot 2024-10-28 15:37:45 -05:00
David Snopek 0602c32986 Directly get object instance ID from `Variant` and implement `Variant::get_validated_object()` 2024-10-17 09:58:52 -05:00
David Snopek 91833c852e Avoid `thread_local` on MacOS to prevent issues with hot reload 2024-10-17 09:06:27 -05:00
David Snopek a98d41f62b
Merge pull request #1590 from dsnopek/reload-instance-bindings
Correctly set instance bindings on reload
2024-10-17 16:05:02 +02:00
Florent Guiocheau 02fd535454 Add p_use_model_front to Basis::looking_at() 2024-10-14 21:50:12 +02:00
Thaddeus Crews 2ffff669f5
Implement typed dictionaries 2024-09-17 15:05:16 -05:00
David Snopek cb543c192a Correctly set instance bindings on reload 2024-09-17 09:18:08 -05:00
Aaron Franke 92e6ea7303
Fix missing type info for PackedVector4Array 2024-08-10 21:21:13 -07:00
David Snopek e65ec904b8 Remind developers about `memnew()` in crash message when missing binding callbacks 2024-06-27 13:09:24 -05:00
David Snopek 7d7799b56e
Merge pull request #1504 from Repiteo/pre-commit-hooks
Replace legacy hooks with `pre-commit` Python tool
2024-06-25 09:42:55 -05:00
Thaddeus Crews e0d363aad8
Integrate `.pre-commit-config.yaml` 2024-06-24 15:43:55 -05:00
Chris Cranford 78b63203d4 Add missing enum & ctor for PackedVector4Array implementation 2024-06-19 11:21:11 -04:00
David Snopek 5d8f80bc55
Merge pull request #1446 from Daylily-Zeleen/daylily-zeleen/set_instance_and_instance_biding_in_Wrapped_constructor
Set instance and instance binding in `Wrapped` constructor.
2024-06-14 09:39:46 -05:00
bruvzg 2360f84513
[TextServer, GDExtension] Fix building text servers as GDExtension, expose new/changed low-level methods to GDExtension API. 2024-06-13 18:57:24 +03:00
Richard Hozák 8c6cc1ec15 Fix warnings emitted with -Wall 2024-06-02 21:48:50 +02:00
Daylily-Zeleen 76cbc66785 Set instance and instance binding in Wrapped constructor. 2024-05-28 22:59:37 +08:00
David Snopek b697ba8896
Merge pull request #1447 from dsnopek/avoid-double-postinitialize
Fix NOTIFICATION_POSTINITIALIZE sent twice to native parent classes
2024-05-17 11:56:09 -05:00
David Snopek 88df025aa0 Clean up instance bindings for engine singletons to prevent crash 2024-05-10 19:51:31 -05:00
Rémi Verschelde 17a82e7f94
Merge pull request #1374 from dsnopek/gdext-docs
Allow submitting documentation to the Godot editor
2024-05-08 00:48:02 +02:00
David Snopek f5c2b38724
Merge pull request #1456 from dsnopek/packedvector4array
Add support for `PackedVector4Array`
2024-05-07 12:56:11 -05:00
David Snopek 43be24f34c
Merge pull request #1437 from AThousandShips/vec_elem_scalar
Add scalar versions of `Vector*` `min/max/clamp/snap(ped)`
2024-05-07 12:55:23 -05:00
David Snopek a434850069 Allow submitting documentation to the Godot editor 2024-05-07 11:08:18 -05:00
David Snopek 23178e81ff Add support for `PackedVector4Array` 2024-05-06 14:30:04 -05:00
David Snopek d304f12dcd
Merge pull request #1443 from Naros/property-method-dict-helpers
Implement to/from dict helpers for PropertyInfo/MethodInfo
2024-04-24 14:43:53 -05:00
David Snopek 61450b3e1b
Merge pull request #1436 from AThousandShips/math_update
[Math] Add `is_finite` methods
2024-04-24 14:43:36 -05:00
David Snopek 06373ce1cf Fix NOTIFICATION_POSTINITIALIZE sent twice to native parent class 2024-04-24 13:22:19 -05:00
Chris Cranford 2a041b5240 Implement to/from dict helpers for PropertyInfo/MethodInfo 2024-04-20 18:50:34 -04:00
thimenesup e4ae69f607
Fix Projection create_orthogonal being incorrect
Title
2024-04-14 20:27:53 +02:00
A Thousand Ships d389171905
[Math] Add `is_finite` methods 2024-04-11 13:30:28 +02:00
A Thousand Ships b65970860e
Add scalar versions of `Vector*` `min/max/clamp/snap(ped)`
Also added `snapped` to the integer vectors for completeness
2024-04-11 10:42:29 +02:00
David Snopek 44d78ec881
Merge pull request #1409 from Repiteo/class-to-typename
Enforce template syntax  `typename` over `class`
2024-04-02 14:30:01 -05:00
David Snopek a62f633ceb
Merge pull request #1379 from dsnopek/uninitialized-value-mk2
Avoid creating most objects that Godot is going to use placement new to initialize
2024-03-14 11:06:59 -05:00
David Snopek ec166295ba
Merge pull request #1397 from dsnopek/script-free-lists
Load new `script_instance_create3` GDExtension interface function
2024-03-14 10:02:21 -05:00
A Thousand Ships fb79d5ff98
Add support for getting argument count from `Callable`s 2024-03-14 10:27:39 +01:00
Thaddeus Crews 87f5fb0691
Enforce template syntax `typename` over `class` 2024-03-10 16:02:43 -05:00
David Snopek 8b92368165 Load new `script_instance_create3` GDExtension interface function 2024-03-01 10:50:02 -06:00
David Snopek e55b792fea
Merge pull request #1383 from bruvzg/memalign
[Core] Improve `CowData` and `Memory` metadata alignment.
2024-02-26 12:54:17 -06:00
David Snopek c4fde852e6 Avoid creating most objects that Godot is going to use placement new to initialize 2024-02-26 10:36:16 -06:00
David Snopek fb884573ea Allow registering "runtime classes" 2024-02-13 08:55:25 -06:00
David Snopek 8fbb7cf795 Allow GDExtensions to register virtual methods and call them on scripts 2024-02-12 13:30:07 -06:00
bruvzg b173a4d935
[Core] Improve `CowData` and `Memory` metadata alignment. 2024-02-05 19:26:45 +02:00
bruvzg 59a5a8b104
Switch to 64-bit ints. 2024-01-10 15:36:36 +02:00
Jakub Mateusz Marcowski b733102f4a Add `Vector2i/3i/4i` methods: `distance_to` and `distance_squared_to` 2024-01-03 11:45:05 +01:00
David Snopek cad5be53b1 Avoid error from -Werror=type-limits on GCC 11 2023-11-30 17:52:33 -06:00
David Snopek 20c4e843b0 Send NOTIFICATION_POSTINITIALIZE to extension classes 2023-11-29 12:00:43 -06:00