mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 13:43:49 +02:00
Qmap initialized
This commit is contained in:
parent
f25288178b
commit
68bce3c09c
1 changed files with 1 additions and 2 deletions
|
@ -314,8 +314,8 @@ bool GLTFReader::addImage(const QJsonObject& object) {
|
|||
|
||||
bool GLTFReader::getIndexFromObject(const QJsonObject& object, const QString& field, int& outidx, QMap<QString, bool>& defined) {
|
||||
QJsonObject subobject;
|
||||
QMap<QString, bool> tmpdefined;
|
||||
if (getObjectVal(object, field, subobject, defined)) {
|
||||
QMap<QString, bool> tmpdefined = QMap<QString, bool>();
|
||||
return getIntVal(subobject, "index", outidx, tmpdefined);
|
||||
}
|
||||
return false;
|
||||
|
@ -326,7 +326,6 @@ bool GLTFReader::addMaterial(const QJsonObject& object) {
|
|||
|
||||
getStringVal(object, "name", material.name, material.defined);
|
||||
getDoubleArrayVal(object, "emissiveFactor", material.emissiveFactor, material.defined);
|
||||
//getIntVal(object, "emissiveTexture", material.emissiveTexture, material.defined);
|
||||
getIndexFromObject(object, "emissiveTexture", material.emissiveTexture, material.defined);
|
||||
getIndexFromObject(object, "normalTexture", material.normalTexture, material.defined);
|
||||
getIndexFromObject(object, "occlusionTexture", material.occlusionTexture, material.defined);
|
||||
|
|
Loading…
Reference in a new issue