mirror of
https://github.com/leozide/leocad.git
synced 2026-07-27 19:56:49 +00:00
Fixed file loading.
This commit is contained in:
@@ -20,3 +20,4 @@ Makefile
|
||||
library.bin
|
||||
leocad_plugin_import.cpp
|
||||
*.qm
|
||||
/uic_wrapper.bat
|
||||
|
||||
+3
-2
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user