mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 00:08:53 +02:00
Be more efficient with MaterialParam in FBXSerializer::getTexture
This commit is contained in:
parent
5173577a92
commit
c875492d50
1 changed files with 3 additions and 2 deletions
|
@ -66,8 +66,9 @@ HFMTexture FBXSerializer::getTexture(const QString& textureID, const QString& ma
|
||||||
}
|
}
|
||||||
texture.texcoordSetName = p.UVSet;
|
texture.texcoordSetName = p.UVSet;
|
||||||
}
|
}
|
||||||
if (_materialParams.contains(materialID)) {
|
auto materialParamItr = _materialParams.find(materialID);
|
||||||
auto materialParam = _materialParams[materialID];
|
if (materialParamItr != _materialParams.end()) {
|
||||||
|
auto& materialParam = materialParamItr.value();
|
||||||
texture.transform.postTranslate(materialParam.translation);
|
texture.transform.postTranslate(materialParam.translation);
|
||||||
texture.transform.postScale(materialParam.scaling);
|
texture.transform.postScale(materialParam.scaling);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue