mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 23:40:11 +02:00
Remove unused mesh.part.materialID
This commit is contained in:
parent
9a65d78cdf
commit
2169952613
3 changed files with 0 additions and 15 deletions
|
@ -1485,12 +1485,6 @@ HFMModel* FBXSerializer::extractHFMModel(const hifi::VariantHash& mapping, const
|
||||||
shape.mesh = meshIndex;
|
shape.mesh = meshIndex;
|
||||||
shape.meshPart = i;
|
shape.meshPart = i;
|
||||||
shape.joint = transformIndex;
|
shape.joint = transformIndex;
|
||||||
|
|
||||||
auto matName = mesh.parts[i].materialID;
|
|
||||||
auto materialIt = materialNameToID.find(matName.toStdString());
|
|
||||||
if (materialIt != materialNameToID.end()) {
|
|
||||||
shape.material = materialIt->second;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// For FBX_DRACO_MESH_VERSION < 2, or unbaked models, get materials from the partMaterialTextures
|
// For FBX_DRACO_MESH_VERSION < 2, or unbaked models, get materials from the partMaterialTextures
|
||||||
|
|
|
@ -174,11 +174,6 @@ glm::vec2 OBJTokenizer::getVec2() {
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void setMeshPartDefaults(HFMMeshPart& meshPart, QString materialID) {
|
|
||||||
meshPart.materialID = materialID;
|
|
||||||
}
|
|
||||||
|
|
||||||
// OBJFace
|
// OBJFace
|
||||||
// NOTE (trent, 7/20/17): The vertexColors vector being passed-in isn't necessary here, but I'm just
|
// NOTE (trent, 7/20/17): The vertexColors vector being passed-in isn't necessary here, but I'm just
|
||||||
// pairing it with the vertices vector for consistency.
|
// pairing it with the vertices vector for consistency.
|
||||||
|
@ -501,8 +496,6 @@ bool OBJSerializer::parseOBJGroup(OBJTokenizer& tokenizer, const hifi::VariantHa
|
||||||
bool anyVertexColor { false };
|
bool anyVertexColor { false };
|
||||||
int vertexCount { 0 };
|
int vertexCount { 0 };
|
||||||
|
|
||||||
setMeshPartDefaults(meshPart, QString("dontknow") + QString::number(mesh.parts.size()));
|
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
int tokenType = tokenizer.nextToken();
|
int tokenType = tokenizer.nextToken();
|
||||||
if (tokenType == OBJTokenizer::COMMENT_TOKEN) {
|
if (tokenType == OBJTokenizer::COMMENT_TOKEN) {
|
||||||
|
|
|
@ -160,8 +160,6 @@ public:
|
||||||
QVector<int> quadIndices; // original indices from the FBX mesh
|
QVector<int> quadIndices; // original indices from the FBX mesh
|
||||||
QVector<int> quadTrianglesIndices; // original indices from the FBX mesh of the quad converted as triangles
|
QVector<int> quadTrianglesIndices; // original indices from the FBX mesh of the quad converted as triangles
|
||||||
QVector<int> triangleIndices; // original indices from the FBX mesh
|
QVector<int> triangleIndices; // original indices from the FBX mesh
|
||||||
|
|
||||||
QString materialID; // DEPRECATED
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class Material {
|
class Material {
|
||||||
|
|
Loading…
Reference in a new issue