mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 19:41:20 +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)) {
|
if (texturesValue.isValid() && texturesValue.canConvert(QVariant::Map)) {
|
||||||
QVariantMap textureMap = texturesValue.toMap();
|
QVariantMap textureMap = texturesValue.toMap();
|
||||||
QMetaObject::invokeMethod(_model.get(), "setTextures", Qt::AutoConnection,
|
QMetaObject::invokeMethod(_model.get(), "setTextures", Qt::AutoConnection,
|
||||||
Q_ARG(const QVariantMap&, textureMap));
|
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()
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue