mirror of
https://github.com/leozide/leocad
synced 2025-01-15 15:40:48 +01:00
Don't read model name from MPD files.
This commit is contained in:
parent
100245f207
commit
beec734524
1 changed files with 4 additions and 1 deletions
|
@ -100,7 +100,10 @@ void lcModelProperties::ParseLDrawLine(QTextStream& Stream)
|
||||||
Stream >> Token;
|
Stream >> Token;
|
||||||
|
|
||||||
if (Token == QLatin1String("NAME"))
|
if (Token == QLatin1String("NAME"))
|
||||||
mName = Stream.readAll().trimmed();
|
{
|
||||||
|
if (mName.isEmpty())
|
||||||
|
mName = Stream.readAll().trimmed();
|
||||||
|
}
|
||||||
else if (Token == QLatin1String("AUTHOR"))
|
else if (Token == QLatin1String("AUTHOR"))
|
||||||
Stream >> mAuthor;
|
Stream >> mAuthor;
|
||||||
else if (Token == QLatin1String("DESCRIPTION"))
|
else if (Token == QLatin1String("DESCRIPTION"))
|
||||||
|
|
Loading…
Reference in a new issue