Fixed file loading.

This commit is contained in:
Leonardo Zide
2016-12-04 18:12:39 -08:00
parent 8152f99ec4
commit 1cacf33e4b
2 changed files with 4 additions and 2 deletions
+1
View File
@@ -20,3 +20,4 @@ Makefile
library.bin
leocad_plugin_import.cpp
*.qm
/uic_wrapper.bat
+3 -2
View File
@@ -488,13 +488,14 @@ void lcModel::LoadLDraw(QIODevice& Device, Project* Project)
if (Token == QLatin1String("FILE"))
{
if (!mProperties.mName.isEmpty())
QString Name = LineStream.readAll().trimmed();
if (mProperties.mName != Name)
{
Device.seek(Pos);
break;
}
mProperties.mName = LineStream.readAll().trimmed();
continue;
}
else if (Token == QLatin1String("NOFILE"))