mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 08:49:05 +02:00
cleanup whitespace
This commit is contained in:
parent
45c73439eb
commit
24b1f3ddbc
1 changed files with 8 additions and 11 deletions
|
@ -78,11 +78,10 @@ void FBXReader::consolidateFBXMaterials(const QVariantHash& mapping) {
|
||||||
QJsonDocument materialMapDocument = QJsonDocument::fromJson(materialMapString.toUtf8());
|
QJsonDocument materialMapDocument = QJsonDocument::fromJson(materialMapString.toUtf8());
|
||||||
QJsonObject materialMap = materialMapDocument.object();
|
QJsonObject materialMap = materialMapDocument.object();
|
||||||
|
|
||||||
// foreach (const QString& materialID, materials) {
|
|
||||||
for (QHash<QString, FBXMaterial>::iterator it = _fbxMaterials.begin(); it != _fbxMaterials.end(); it++) {
|
for (QHash<QString, FBXMaterial>::iterator it = _fbxMaterials.begin(); it != _fbxMaterials.end(); it++) {
|
||||||
FBXMaterial& material = (*it);
|
FBXMaterial& material = (*it);
|
||||||
|
|
||||||
// Maya is the exporting the shading model and we aretrying to use it
|
// Maya is the exporting the shading model and we are trying to use it
|
||||||
bool isMaterialLambert = (material.shadingModel.toLower() == "lambert");
|
bool isMaterialLambert = (material.shadingModel.toLower() == "lambert");
|
||||||
|
|
||||||
// the pure material associated with this part
|
// the pure material associated with this part
|
||||||
|
@ -127,8 +126,6 @@ void FBXReader::consolidateFBXMaterials(const QVariantHash& mapping) {
|
||||||
detectDifferentUVs |= (transparentTexture.texcoordSet != 0) || (!transparentTexture.transform.isIdentity());
|
detectDifferentUVs |= (transparentTexture.texcoordSet != 0) || (!transparentTexture.transform.isIdentity());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
FBXTexture normalTexture;
|
FBXTexture normalTexture;
|
||||||
QString bumpTextureID = bumpTextures.value(material.materialID);
|
QString bumpTextureID = bumpTextures.value(material.materialID);
|
||||||
QString normalTextureID = normalTextures.value(material.materialID);
|
QString normalTextureID = normalTextures.value(material.materialID);
|
||||||
|
|
Loading…
Reference in a new issue