issue_2016

only add material uv mappings if set, ignore when no uvmapping set
removed unneccessary pad_i1 field (to prevent unnecessary field read exceptions)
This commit is contained in:
CwTCwT
2018-06-16 15:08:19 +02:00
parent aa09001333
commit 41bf572af6
6 changed files with 87 additions and 3 deletions

View File

@@ -1045,7 +1045,10 @@ void BlenderImporter::ConvertMesh(const Scene& /*in*/, const Object* /*obj*/, co
}
}
}
matTexUvMappings.insert(std::make_pair(m, texuv));
if (texuv.size())
{
matTexUvMappings.insert(std::make_pair(m, texuv));
}
}
// collect texture coordinates, they're stored in a separate per-face buffer