From 7001cdf11d6f255c8a70e3a642400afe2d03d40b Mon Sep 17 00:00:00 2001 From: Leonardo Zide Date: Sun, 2 Jun 2019 09:39:12 -0700 Subject: [PATCH] Fixed crash loading textured parts. --- common/lc_library.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/lc_library.cpp b/common/lc_library.cpp index 03af3f67..700dc983 100644 --- a/common/lc_library.cpp +++ b/common/lc_library.cpp @@ -1505,11 +1505,11 @@ lcMesh* lcPiecesLibrary::CreateMesh(PieceInfo* Info, lcLibraryMeshData& MeshData { for (const lcLibraryMeshVertex& SrcVertex : MeshData.mVertices[MeshDataIdx]) { - lcVertex& DstVertex = *DstVerts++; - if ((SrcVertex.Usage & LC_LIBRARY_VERTEX_UNTEXTURED) == 0) continue; + lcVertex& DstVertex = *DstVerts++; + DstVertex.Position = lcVector3LDrawToLeoCAD(SrcVertex.Position); DstVertex.Normal = lcPackNormal(lcVector3LDrawToLeoCAD(SrcVertex.Normal)); }