mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 01:24:03 +02:00
Remove old texture setting code in ModelOverlay
This commit is contained in:
parent
93d995a5ae
commit
847a5cc7a1
1 changed files with 1 additions and 12 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue