Fix models not settings textures if not loaded

This commit is contained in:
Ryan Huffman 2016-12-12 11:16:47 -08:00 committed by Seth Alves
parent 6f98e2f055
commit baa70dd1c0

View file

@ -850,6 +850,10 @@ void Model::setTextures(const QVariantMap& textures) {
_needsUpdateTextures = true;
_needsFixupInScene = true;
_renderGeometry->setTextures(textures);
} else {
connect(&_renderWatcher, &GeometryResourceWatcher::finished, this, [this, textures]() {
_renderGeometry->setTextures(textures);
});
}
}