mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 22:36:39 +02:00
restore code for debugging
This commit is contained in:
parent
e3c269d582
commit
d52dce8e09
1 changed files with 16 additions and 1 deletions
|
@ -1979,7 +1979,22 @@ FBXGeometry* FBXReader::extractFBXGeometry(const QVariantHash& mapping, const QS
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
int i = 0;
|
||||||
|
for (const auto& mesh : geometry.meshes) {
|
||||||
|
auto name = geometry.getModelNameOfMesh(i++);
|
||||||
|
if (!name.isEmpty()) {
|
||||||
|
if (mesh._mesh) {
|
||||||
|
mesh._mesh->modelName = name.toStdString();
|
||||||
|
if (!mesh._mesh->displayName.size()) {
|
||||||
|
mesh._mesh->displayName = mesh._mesh->displayName + "#" + name;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
qDebug() << "modelName but no mesh._mesh" << name;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
return geometryPtr;
|
return geometryPtr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue