diff options
author | NutmegStudio <62319714+NutmegStudio@users.noreply.github.com> | 2021-01-08 12:01:53 +0700 |
---|---|---|
committer | NutmegStudio <62319714+NutmegStudio@users.noreply.github.com> | 2021-01-08 12:01:53 +0700 |
commit | fba23f54758643aa8ceae3034218a02da358069a (patch) | |
tree | 17a952d26a8806b47824299ee619d96d7eb66619 /modules/gltf | |
parent | 8ba67b728e63df81c19ea872f0a0b808edd519d2 (diff) |
make EditorSceneImporterGLTF and GLTFMesh APIType::API_EDITOR
Diffstat (limited to 'modules/gltf')
-rw-r--r-- | modules/gltf/register_types.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gltf/register_types.cpp b/modules/gltf/register_types.cpp index 85da4a0dd7..dc995c9249 100644 --- a/modules/gltf/register_types.cpp +++ b/modules/gltf/register_types.cpp @@ -60,9 +60,10 @@ static void _editor_init() { void register_gltf_types() { #ifndef _3D_DISABLED #ifdef TOOLS_ENABLED - ClassDB::register_class<EditorSceneImporterGLTF>(); ClassDB::APIType prev_api = ClassDB::get_current_api(); ClassDB::set_current_api(ClassDB::API_EDITOR); + ClassDB::register_class<EditorSceneImporterGLTF>(); + ClassDB::register_class<GLTFMesh>(); EditorPlugins::add_by_type<SceneExporterGLTFPlugin>(); ClassDB::set_current_api(prev_api); EditorNode::add_init_callback(_editor_init); @@ -75,7 +76,6 @@ void register_gltf_types() { ClassDB::register_class<GLTFTexture>(); ClassDB::register_class<GLTFSkeleton>(); ClassDB::register_class<GLTFSkin>(); - ClassDB::register_class<GLTFMesh>(); ClassDB::register_class<GLTFCamera>(); ClassDB::register_class<GLTFLight>(); ClassDB::register_class<GLTFState>(); |