Preserve file case when loading a file from the same folder as the current project. Fixes #302.

This commit is contained in:
Leonardo Zide 2019-02-27 16:34:56 -08:00
parent ef33f2c59c
commit 319dd3a1a0

View file

@ -672,7 +672,7 @@ void lcModel::LoadLDraw(QIODevice& Device, Project* Project)
if (!CurrentGroups.IsEmpty())
Piece->SetGroup(CurrentGroups[CurrentGroups.GetSize() - 1]);
PieceInfo* Info = Library->FindPiece(CleanId.constData(), Project, true, true);
PieceInfo* Info = Library->FindPiece(PartId.toLatin1().constData(), Project, true, true);
float* Matrix = IncludeTransform;
lcMatrix44 Transform(lcVector4(Matrix[0], Matrix[2], -Matrix[1], 0.0f), lcVector4(Matrix[8], Matrix[10], -Matrix[9], 0.0f),