mirror of
https://github.com/leozide/leocad
synced 2025-01-15 15:40:48 +01:00
Fixed loading mpds that have files with spaces in their names.
This commit is contained in:
parent
7546ff0b54
commit
c6b27f2d05
1 changed files with 2 additions and 3 deletions
|
@ -420,10 +420,9 @@ void lcModel::LoadLDraw(QTextStream& Stream)
|
|||
lcMatrix44 IncludeTransform(lcVector4(Matrix[3], Matrix[6], Matrix[9], 0.0f), lcVector4(Matrix[4], Matrix[7], Matrix[10], 0.0f),
|
||||
lcVector4(Matrix[5], Matrix[8], Matrix[11], 0.0f), lcVector4(Matrix[0], Matrix[1], Matrix[2], 1.0f));
|
||||
|
||||
QString File;
|
||||
LineStream >> File;
|
||||
|
||||
QString File = LineStream.readAll().trimmed();
|
||||
QString PartID = File.toUpper();
|
||||
|
||||
if (PartID.endsWith(QLatin1String(".DAT")))
|
||||
PartID = PartID.left(PartID.size() - 4);
|
||||
|
||||
|
|
Loading…
Reference in a new issue