aboutsummaryrefslogtreecommitdiff
path: root/editor/io_plugins/editor_mesh_import_plugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/io_plugins/editor_mesh_import_plugin.cpp')
-rw-r--r--editor/io_plugins/editor_mesh_import_plugin.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/editor/io_plugins/editor_mesh_import_plugin.cpp b/editor/io_plugins/editor_mesh_import_plugin.cpp
index 91a4afbbf..1ad829e99 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 Ref<ResourceImp
has_index_data = false;
- if (f->eof_reached())
- break;
}
if (l.begins_with("o ")) //name
name = l.substr(2, l.length()).strip_edges();
+
+ if (f->eof_reached())
+ break;
}
}