summaryrefslogtreecommitdiffstats
path: root/src/render/io/gltfparser.cpp
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2014-07-02 11:21:15 +0200
committerSean Harmer <sean.harmer@kdab.com>2014-07-05 16:03:12 +0200
commita20f272b2fe5179d95e397afc6aa3ed80afb7188 (patch)
tree7f9af56369176cb4eecd9acf073baf7479a1f0ef /src/render/io/gltfparser.cpp
parent0bb42c0ae5d47911334c03e29ef9918966d462f8 (diff)
Refactoring of MeshData, Buffer, Mesh and Attribute
They are now subclasses of the abstracts defined in the previous path. QAbstractMesh's source property was transferred to QMesh, this will allow to have ShapeMeshes subclass QAbstractMesh directly and not have a useless source property. MeshData, Buffer and Attribute moved to their own files and properly d-pointered. Change-Id: I6d09b00a17045826e16503f5fb2d8f8eb0f2abf2 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/io/gltfparser.cpp')
-rw-r--r--src/render/io/gltfparser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/io/gltfparser.cpp b/src/render/io/gltfparser.cpp
index acfb04bf5..b4a32addd 100644
--- a/src/render/io/gltfparser.cpp
+++ b/src/render/io/gltfparser.cpp
@@ -676,7 +676,7 @@ void GLTFParser::processJSONMesh( QString id, QJsonObject jsonObj )
if (!m_attributeDict.contains(k)) {
qCWarning(Render::Io) << "unknown index accessor:" << k << "on mesh" << id;
} else {
- md->setIndexAttr(m_attributeDict[k]);
+ md->setIndexAttribute(m_attributeDict[k]);
// m_attributeDict[k]->dump(100);
}
} // of has indices