fix append: polygonal faces with more than 3 vertices have always maximum 3 wedges...

This commit is contained in:
alemuntoni 2021-11-12 14:21:53 +01:00
parent 179b9360c5
commit aee9055ffe
1 changed files with 1 additions and 1 deletions

View File

@ -460,7 +460,7 @@ static void MeshAppendConst(
}
fl.ImportData(f);
if(wedgeTexFlag) {
for(int i = 0; i < fl.VN(); ++i){
for(int i = 0; i < 3; ++i){
if (size_t(f.WT(i).n()) < mappingTextures.size()){
//standard case: the texture is contained in the mesh
fl.WT(i).n() = mappingTextures[f.WT(i).n()];