mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-23 13:35:06 +02:00
Merge pull request #2802 from ey6es/master
Fix for exports from Sketchup.
This commit is contained in:
commit
c38ab1acde
1 changed files with 1 additions and 1 deletions
|
@ -817,7 +817,7 @@ ExtractedMesh extractMesh(const FBXNode& object) {
|
||||||
while (endIndex < data.polygonIndices.size() && data.polygonIndices.at(endIndex++) >= 0);
|
while (endIndex < data.polygonIndices.size() && data.polygonIndices.at(endIndex++) >= 0);
|
||||||
|
|
||||||
QPair<int, int> materialTexture((polygonIndex < materials.size()) ? materials.at(polygonIndex) : 0,
|
QPair<int, int> materialTexture((polygonIndex < materials.size()) ? materials.at(polygonIndex) : 0,
|
||||||
(polygonIndex < textures.size()) ? textures.at(polygonIndex) : 0);
|
(polygonIndex < textures.size()) ? textures.at(polygonIndex) : -1);
|
||||||
int& partIndex = materialTextureParts[materialTexture];
|
int& partIndex = materialTextureParts[materialTexture];
|
||||||
if (partIndex == 0) {
|
if (partIndex == 0) {
|
||||||
data.extracted.partMaterialTextures.append(materialTexture);
|
data.extracted.partMaterialTextures.append(materialTexture);
|
||||||
|
|
Loading…
Reference in a new issue