From 319dd3a1a00bf08be353f87ae0970a434fe2849b Mon Sep 17 00:00:00 2001 From: Leonardo Zide Date: Wed, 27 Feb 2019 16:34:56 -0800 Subject: [PATCH] Preserve file case when loading a file from the same folder as the current project. Fixes #302. --- common/lc_model.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lc_model.cpp b/common/lc_model.cpp index 43795162..5d3779f1 100644 --- a/common/lc_model.cpp +++ b/common/lc_model.cpp @@ -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),