From 9090d3992423d667d04640949cd00a9b26dc1c3b Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 18 Aug 2024 16:17:38 +0100 Subject: Don't set face material on each vertex index pass --- assetFactory/assimp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'assetFactory') diff --git a/assetFactory/assimp.cpp b/assetFactory/assimp.cpp index 1e11eda..e33783a 100644 --- a/assetFactory/assimp.cpp +++ b/assetFactory/assimp.cpp @@ -84,8 +84,8 @@ public: for (auto idx = f.mIndices; const auto fheh : mesh.fh_range(fh)) { const auto ouv = !amesh->mTextureCoords[0][*idx++]; mesh.set_texcoord2D(fheh, ouv); - mesh.property(mesh.materialFaceProperty, fh) = material; } + mesh.property(mesh.materialFaceProperty, fh) = material; } } } -- cgit v1.2.3