Fixed LDD import not converting transforms correctly. Fixes #355.

This commit is contained in:
Leonardo Zide 2019-06-23 12:52:53 -07:00
parent 19e1493251
commit 4c0a696661

View file

@ -168,7 +168,7 @@ bool lcImportLXFMLFile(const QString& FileData, lcArray<lcPiece*>& Pieces, lcArr
if (ColorIt != MaterialTable.end()) if (ColorIt != MaterialTable.end())
ColorCode = ColorIt->second; ColorCode = ColorIt->second;
const auto TransformIt = TransformTable.find(BrickIt != BrickTable.end() ? BrickIt->second : LegoID.toStdString()); const auto TransformIt = TransformTable.find(BrickIt != BrickTable.end() ? BrickIt->second : (LegoID.toStdString() + ".dat"));
if (TransformIt != TransformTable.end()) if (TransformIt != TransformTable.end())
{ {
const lcVector4& AxisAngle = TransformIt->second.second; const lcVector4& AxisAngle = TransformIt->second.second;