mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 23:17:02 +02:00
Fix for exports from Sketchup.
This commit is contained in:
parent
432df1b65f
commit
353b9879b8
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