mirror of
https://github.com/leozide/leocad
synced 2024-12-28 22:23:35 +01:00
Fixed crash loading textured parts.
This commit is contained in:
parent
b8c2074c93
commit
7001cdf11d
1 changed files with 2 additions and 2 deletions
|
@ -1505,11 +1505,11 @@ lcMesh* lcPiecesLibrary::CreateMesh(PieceInfo* Info, lcLibraryMeshData& MeshData
|
||||||
{
|
{
|
||||||
for (const lcLibraryMeshVertex& SrcVertex : MeshData.mVertices[MeshDataIdx])
|
for (const lcLibraryMeshVertex& SrcVertex : MeshData.mVertices[MeshDataIdx])
|
||||||
{
|
{
|
||||||
lcVertex& DstVertex = *DstVerts++;
|
|
||||||
|
|
||||||
if ((SrcVertex.Usage & LC_LIBRARY_VERTEX_UNTEXTURED) == 0)
|
if ((SrcVertex.Usage & LC_LIBRARY_VERTEX_UNTEXTURED) == 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
lcVertex& DstVertex = *DstVerts++;
|
||||||
|
|
||||||
DstVertex.Position = lcVector3LDrawToLeoCAD(SrcVertex.Position);
|
DstVertex.Position = lcVector3LDrawToLeoCAD(SrcVertex.Position);
|
||||||
DstVertex.Normal = lcPackNormal(lcVector3LDrawToLeoCAD(SrcVertex.Normal));
|
DstVertex.Normal = lcPackNormal(lcVector3LDrawToLeoCAD(SrcVertex.Normal));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue