Remove old texture setting code in ModelOverlay

This commit is contained in:
Ryan Huffman 2016-09-20 12:55:15 -07:00
parent 93d995a5ae
commit 847a5cc7a1

View file

@ -123,18 +123,7 @@ void ModelOverlay::setProperties(const QVariantMap& properties) {
if (texturesValue.isValid() && texturesValue.canConvert(QVariant::Map)) {
QVariantMap textureMap = texturesValue.toMap();
QMetaObject::invokeMethod(_model.get(), "setTextures", Qt::AutoConnection,
Q_ARG(const QVariantMap&, textureMap));
// foreach(const QString& key, textureMap.keys()) {
//
// QUrl newTextureURL = textureMap[key].toUrl();
// qDebug() << "Updating texture named" << key << "to texture at URL" << newTextureURL;
//
// QMetaObject::invokeMethod(_model.get(), "setTextureWithNameToURL", Qt::AutoConnection,
// Q_ARG(const QString&, key),
// Q_ARG(const QUrl&, newTextureURL));
//
// _modelTextures[key] = newTextureURL; // Keep local track of textures for getProperty()
// }
Q_ARG(const QVariantMap&, textureMap));
}
}