Merge pull request #45006 from pihdastudios/master
make EditorSceneImporterGLTF and GLTFMesh APIType::API_EDITOR
This commit is contained in:
commit
4524bf279b
1 changed files with 2 additions and 2 deletions
|
@ -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>();
|
||||
|
|
Loading…
Reference in a new issue