Commit Graph

1113 Commits (59ebcfd7448d376efe3b87a70388da6876a76e36)

Author SHA1 Message Date
ondy-personal 3d237fc7d7
Fixed crash when called methods return nullptr.
The returned value "ret" may be nullptr in which case the code would crash because "object_get_instance_binding" can't be called on nullptr input.

This should be very easy to reproduce, I encountered it pretty much any time I called a method that returned Ref<Something>. E.g.:

Ref<GeometryInstance3D> instance;
instance.instantiate();
instance.get_mesh();    // Crash because no mesh was set for the instance and the returned value was nullptr.
2022-01-31 17:12:45 -08:00
Hugo Locurcio 4dddd0b55b
Merge pull request #685 from paddy-exe/master 2022-01-29 17:21:33 +01:00
Patrick Exner 31eddf9e87 Update README file for macos support 2022-01-29 17:03:35 +01:00
Bastiaan Olij 4e2411ad98 headers: Sync with upstream commit 9f5c18c 2022-01-27 09:56:46 +11:00
Nicolás Carrasco f227a0179f Fix Test CMake project for Windows and parametrize paths 2022-01-26 20:12:05 +01:00
Hugo Locurcio b9b606d271
Merge pull request #675 from Ivorforce/patch-2 2022-01-26 18:47:13 +01:00
Rémi Verschelde 2ce688d2ad
headers: Sync with upstream commit 31a7ddb (4.0-alpha1) 2022-01-23 23:28:40 +01:00
Rémi Verschelde dfa395c5ed
Merge pull request #682 from bruvzg/macos_demo 2022-01-11 10:08:04 +01:00
bruvzg a263344653
[Demo Project] Add macOS framework templates, update Scons build script and ".gdextension" file. 2022-01-11 10:42:04 +02:00
Rémi Verschelde 02d98387a1
headers: Sync with upstream commit fcc2648 2022-01-07 14:29:15 +01:00
Lukas Tönne 836cc4d3dc Fix for pointer indirection in the Ref<T> template.
Patch by Nana Sakisaka (saki7).
2022-01-07 09:20:05 +01:00
Rémi Verschelde cfd3fa97d1
Merge pull request #668 from groud/fix_extension_instance_set 2022-01-06 17:44:29 +01:00
Lukas Tönne 5fa9b765dc Fixed pointer indirection in the PtrToArg template for Object arguments. 2022-01-02 17:10:32 +01:00
Ivorius 3475ad69b3
In CMakeLists, use the new FindPython3 instead of FindPython 2021-12-29 15:02:38 +01:00
O01eg c5fd3d00d2
Test CMake project with CI (#518) 2021-12-24 01:29:21 +01:00
Rémi Verschelde e07d3b9a97
Merge pull request #672 from bradc6/bugfix/NormalizedNorspaceInMacros 2021-12-20 15:45:07 +01:00
Bradley Clemetson 76c4adb7f8
Normalized additional macros to ensure that everything works without client code needing using 2021-12-18 15:16:14 -08:00
Rémi Verschelde f3315aeff6
Merge pull request #671 from bradc6/bugfix/ConsistentNamespace 2021-12-16 10:45:59 +01:00
Rémi Verschelde f32d95b6d9
Merge pull request #670 from bradc6/bugfix/CmakeGenerator 2021-12-13 10:54:01 +01:00
Bradley Clemetson 37938a1761
Fix namespace to be consistent with the previous ADD functions 2021-12-12 18:23:33 -08:00
Bradley Clemetson c608277bcf
Require at least python 3 2021-12-11 15:32:49 -08:00
Gilles Roudière adbbf1a3a1 Fix object_set_instance being wrongly called for built-in wrapped classes 2021-12-06 15:40:19 +01:00
Rémi Verschelde f58a2f25a2
Merge pull request #663 from groud/move_godot_object_init_to_extension 2021-12-03 16:24:42 +01:00
Gilles Roudière 3fcb8a4d1e Make extension instances create the corresponding godot object in their constructor 2021-12-03 15:37:49 +01:00
Bastiaan Olij 50512f0dee
Merge pull request #659 from groud/fix_null_init
Avoid crash in Variant constructor from nullptr Object*
2021-11-25 11:16:55 +11:00
Rémi Verschelde d619c612d5
Merge pull request #661 from Calinou/scons-warn-unknown-variables 2021-11-24 14:50:02 +01:00
Hugo Locurcio 1e2eafe777
Print a warning with unknown SCons variables to ease troubleshooting 2021-11-23 22:41:52 +01:00
Gilles Roudière 55ba2602db Avoid crash in Variant constructor from nullptr Object* 2021-11-23 11:01:49 +01:00
Rémi Verschelde adbc0bfe00
Merge pull request #656 from BastiaanOlij/dictionary_index 2021-11-23 10:07:07 +01:00
Bastiaan Olij b008810c01 Implementing dictionary operators 2021-11-23 19:44:53 +11:00
Rémi Verschelde 5cacce7a26
Merge pull request #650 from BastiaanOlij/fix_compile_warnings 2021-11-22 12:22:24 +01:00
Bastiaan Olij 94efe3d410 Fixing compiler warnings around implicit type casting loosing precision 2021-11-22 21:48:20 +11:00
Rémi Verschelde 8d25e04d28
Merge pull request #627 from BastiaanOlij/array_operator 2021-11-17 11:04:32 +01:00
Bastiaan Olij c2b690439f Implement index operators for Arrays 2021-11-12 14:29:54 +11:00
Rémi Verschelde 271e33658d
Merge pull request #649 from RedwanFox/windows_fix_cmake_configuration 2021-11-11 13:58:26 +01:00
Nickolai Korshunov 5336c7e97b synced windows compile definitions with scons configuration
df9164b9bd
2021-11-11 15:19:16 +03:00
Rémi Verschelde fd76008f63
Merge pull request #646 from BastiaanOlij/add_array_make 2021-11-10 08:53:24 +01:00
Rémi Verschelde 7d01234211
headers: Sync with upstream commit 3abb5a9 2021-11-04 15:43:03 +01:00
Rémi Verschelde b3c7581cf9
Add `.gitignore` for test, ignore potential log files
(cherry picked from commit 1070a29d77)
2021-11-04 15:42:27 +01:00
Bastiaan Olij 957f86c3e3 Add Array:make macro 2021-11-02 00:20:19 +11:00
Rémi Verschelde b1dbaad396
Merge pull request #644 from BastiaanOlij/rename_interface 2021-10-28 11:12:07 +02:00
Bastiaan Olij ef528d3a86 Rename interface to gdn_interface because it's a defined keyword under windows 2021-10-28 19:44:20 +11:00
Bastiaan Olij 5148aad3d4 headers: Sync with upstream commit 92a2380 2021-10-25 20:27:03 +11:00
Rémi Verschelde c7fc804112
headers: Sync with upstream commit a4e1a07 2021-10-16 17:36:37 +02:00
Rémi Verschelde d9e643db2b
Merge pull request #639 from Shatur/rework-cmake-debug-flags 2021-10-04 09:14:18 +02:00
Hennadii Chernyshchyk 2f92b4a37d
Rework debug flags for CMake
* Attach debug flags to the target and mark as `PUBLIC`. This will allow all
  projects that use bindings not to add the same defines manually.
* Use generator-expressions to support multiconfig generators (such as
  MSVC).
* Remove excplitic `NDEBUG` and `_DEBUG` flags, CMake handles it
  automatically.
2021-10-03 17:30:37 +03:00
Rémi Verschelde 230fd4bc08
Merge pull request #634 from Faless/osx/universal 2021-10-01 07:37:42 +02:00
Fabio Alessandrelli 480ad9ffed [CI] Make OSX universal build instead 2 builds. 2021-09-29 22:35:09 +02:00
Fabio Alessandrelli 67f9109d1f [OSX] Add universal build support. 2021-09-29 22:31:12 +02:00
Rémi Verschelde ad11bbb584
Merge pull request #632 from BastiaanOlij/debug_and_release 2021-09-29 08:10:05 +02:00