fix append: polygonal faces with more than 3 vertices have always maximum 3 wedges...
This commit is contained in:
parent
179b9360c5
commit
aee9055ffe
|
|
@ -460,7 +460,7 @@ static void MeshAppendConst(
|
||||||
}
|
}
|
||||||
fl.ImportData(f);
|
fl.ImportData(f);
|
||||||
if(wedgeTexFlag) {
|
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()){
|
if (size_t(f.WT(i).n()) < mappingTextures.size()){
|
||||||
//standard case: the texture is contained in the mesh
|
//standard case: the texture is contained in the mesh
|
||||||
fl.WT(i).n() = mappingTextures[f.WT(i).n()];
|
fl.WT(i).n() = mappingTextures[f.WT(i).n()];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue