diff --git a/editor/io_plugins/editor_mesh_import_plugin.cpp b/editor/io_plugins/editor_mesh_import_plugin.cpp index 91a4afbbf26..1ad829e9962 100644 --- a/editor/io_plugins/editor_mesh_import_plugin.cpp +++ b/editor/io_plugins/editor_mesh_import_plugin.cpp @@ -513,12 +513,13 @@ Error EditorMeshImportPlugin::import(const String &p_path, const Refeof_reached()) - break; } if (l.begins_with("o ")) //name name = l.substr(2, l.length()).strip_edges(); + + if (f->eof_reached()) + break; } }