mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 02:37:12 +02:00
Fix models not settings textures if not loaded
This commit is contained in:
parent
6f98e2f055
commit
baa70dd1c0
1 changed files with 4 additions and 0 deletions
|
@ -850,6 +850,10 @@ void Model::setTextures(const QVariantMap& textures) {
|
||||||
_needsUpdateTextures = true;
|
_needsUpdateTextures = true;
|
||||||
_needsFixupInScene = true;
|
_needsFixupInScene = true;
|
||||||
_renderGeometry->setTextures(textures);
|
_renderGeometry->setTextures(textures);
|
||||||
|
} else {
|
||||||
|
connect(&_renderWatcher, &GeometryResourceWatcher::finished, this, [this, textures]() {
|
||||||
|
_renderGeometry->setTextures(textures);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue