diff options
author | reduz <reduzio@gmail.com> | 2021-07-08 16:16:02 -0300 |
---|---|---|
committer | reduz <reduzio@gmail.com> | 2021-07-08 17:08:12 -0300 |
commit | 44691448911f1d29d4d79dbdd5553734761e57c4 (patch) | |
tree | e94aef364ad141c1e96cb775eec1788b03bd8301 /modules/gdnative/nativescript/godot_nativescript.cpp | |
parent | d4e5fe6c44cecccd4f925707ccd5bbe1511184e5 (diff) | |
download | redot-engine-44691448911f1d29d4d79dbdd5553734761e57c4.tar.gz |
Redo how instance bindings work
* The harcoded 8 slots are no more and impose limits in the new extension system.
* New system is limitless, although it will impose small performance hit with a mutex.
* Use a token to request the instance binding.
**Warning**: Mono will most likely break as a result of this, will need to be modified to use the new system.
Diffstat (limited to 'modules/gdnative/nativescript/godot_nativescript.cpp')
-rw-r--r-- | modules/gdnative/nativescript/godot_nativescript.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdnative/nativescript/godot_nativescript.cpp b/modules/gdnative/nativescript/godot_nativescript.cpp index b10a747568..70b14836bf 100644 --- a/modules/gdnative/nativescript/godot_nativescript.cpp +++ b/modules/gdnative/nativescript/godot_nativescript.cpp @@ -332,7 +332,7 @@ void GDAPI godot_nativescript_unregister_instance_binding_data_functions(int p_i } void GDAPI *godot_nativescript_get_instance_binding_data(int p_idx, godot_object *p_object) { - return NativeScriptLanguage::get_singleton()->get_instance_binding_data(p_idx, (Object *)p_object); + return nullptr; } void GDAPI godot_nativescript_profiling_add_data(const char *p_signature, uint64_t p_time) { |