fix global type registration order

pull/155/head
karroffel 2018-04-05 21:58:56 +02:00
parent dabc96ebd9
commit b3d705c898
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ def generate_class_header(used_classes, c):
if class_name != "Object" and class_name != "Reference": if class_name != "Object" and class_name != "Reference":
source.append("#include <core/Ref.hpp>") source.append("#include <core/Ref.hpp>")
else: else:
source.append("#include <TagDB.hpp>") source.append("#include <core/TagDB.hpp>")
included = [] included = []

View File

@ -98,7 +98,6 @@ void Godot::gdnative_init(godot_gdnative_init_options *options)
} }
} }
___register_types();
} }
void Godot::gdnative_terminate(godot_gdnative_terminate_options *options) void Godot::gdnative_terminate(godot_gdnative_terminate_options *options)
@ -116,6 +115,7 @@ void Godot::nativescript_init(void *handle)
godot::_RegisterState::language_index = godot::nativescript_1_1_api->godot_nativescript_register_instance_binding_data_functions(binding_funcs); godot::_RegisterState::language_index = godot::nativescript_1_1_api->godot_nativescript_register_instance_binding_data_functions(binding_funcs);
___register_types();
} }
void Godot::nativescript_terminate(void *handle) void Godot::nativescript_terminate(void *handle)