diff --git a/interface/src/ui/overlays/ModelOverlay.cpp b/interface/src/ui/overlays/ModelOverlay.cpp index e299070dca..694a1e1ddc 100644 --- a/interface/src/ui/overlays/ModelOverlay.cpp +++ b/interface/src/ui/overlays/ModelOverlay.cpp @@ -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)); } }