diff --git a/editor/plugins/mesh_library_editor_plugin.cpp b/editor/plugins/mesh_library_editor_plugin.cpp index e6f0e65e4094..fb58d5616b91 100644 --- a/editor/plugins/mesh_library_editor_plugin.cpp +++ b/editor/plugins/mesh_library_editor_plugin.cpp @@ -84,9 +84,16 @@ void MeshLibraryEditor::_import_scene(Node *p_scene, Ref p_library, if (child->get_child_count() > 0) { child = child->get_child(0); if (!Object::cast_to(child)) { - continue; + // Some imported gltf will generate an empty parent. + if (child->get_child_count() > 0) { + child = child->get_child(0); + if (!Object::cast_to(child)) { + continue; + } + } else { + continue; + } } - } else { continue; }