mirror of
https://github.com/godotengine/godot.git
synced 2025-10-30 13:11:13 +00:00
[GDNative/NativeScript] fix -rdynamic and removed _init call
The _init call was buggy anyway and in the end shouldn't be a
thing that's called via ClassDB, it should be something that's
language specific, so we leave this out for the bindings.
In the commit 66a7763 the SCsub file for GDNative was changed to
use a cloned environment, that bricked -rdynamic which needs to be
passed down to the linker, which didn't happen with the new env.
This commit is contained in:
parent
880048377d
commit
c143f86968
2 changed files with 6 additions and 13 deletions
|
|
@ -213,11 +213,6 @@ ScriptInstance *NativeScript::instance_create(Object *p_this) {
|
|||
owners_lock->unlock();
|
||||
#endif
|
||||
|
||||
// try to call _init
|
||||
// we don't care if it doesn't exist, so we ignore errors.
|
||||
Variant::CallError err;
|
||||
call("_init", NULL, 0, err);
|
||||
|
||||
return nsi;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue