mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-22 11:56:49 +01:00
Fix registering types in the gltf module.
This commit is contained in:
parent
8d679355df
commit
34630ffd40
@ -62,8 +62,7 @@ void register_gltf_types(ModuleRegistrationLevel p_level) {
|
|||||||
if (p_level == MODULE_REGISTRATION_LEVEL_EDITOR) {
|
if (p_level == MODULE_REGISTRATION_LEVEL_EDITOR) {
|
||||||
ClassDB::APIType prev_api = ClassDB::get_current_api();
|
ClassDB::APIType prev_api = ClassDB::get_current_api();
|
||||||
ClassDB::set_current_api(ClassDB::API_EDITOR);
|
ClassDB::set_current_api(ClassDB::API_EDITOR);
|
||||||
ClassDB::register_class<EditorSceneImporterGLTF>();
|
//ClassDB::register_class<EditorSceneImporterGLTF>();
|
||||||
ClassDB::register_class<GLTFMesh>();
|
|
||||||
EditorPlugins::add_by_type<SceneExporterGLTFPlugin>();
|
EditorPlugins::add_by_type<SceneExporterGLTFPlugin>();
|
||||||
ClassDB::set_current_api(prev_api);
|
ClassDB::set_current_api(prev_api);
|
||||||
EditorNode::add_init_callback(_editor_init);
|
EditorNode::add_init_callback(_editor_init);
|
||||||
@ -82,6 +81,7 @@ void register_gltf_types(ModuleRegistrationLevel p_level) {
|
|||||||
ClassDB::register_class<GLTFSkeleton>();
|
ClassDB::register_class<GLTFSkeleton>();
|
||||||
ClassDB::register_class<GLTFSkin>();
|
ClassDB::register_class<GLTFSkin>();
|
||||||
ClassDB::register_class<GLTFCamera>();
|
ClassDB::register_class<GLTFCamera>();
|
||||||
|
ClassDB::register_class<GLTFMesh>();
|
||||||
ClassDB::register_class<GLTFLight>();
|
ClassDB::register_class<GLTFLight>();
|
||||||
ClassDB::register_class<GLTFPhysicsBody>();
|
ClassDB::register_class<GLTFPhysicsBody>();
|
||||||
ClassDB::register_class<GLTFState>();
|
ClassDB::register_class<GLTFState>();
|
||||||
|
Loading…
Reference in New Issue
Block a user