mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 15:38:00 +02:00
Only show overlay if textures have loaded
This commit is contained in:
parent
6cecfd4d24
commit
446ef97fc5
1 changed files with 3 additions and 0 deletions
|
@ -136,6 +136,9 @@ void ModelOverlay::update(float deltatime) {
|
||||||
}
|
}
|
||||||
_model->updateRenderItems();
|
_model->updateRenderItems();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Only show overlay if textures have loaded
|
||||||
|
_model->setVisibleInScene(_texturesLoaded, scene);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ModelOverlay::addToScene(Overlay::Pointer overlay, const render::ScenePointer& scene, render::Transaction& transaction) {
|
bool ModelOverlay::addToScene(Overlay::Pointer overlay, const render::ScenePointer& scene, render::Transaction& transaction) {
|
||||||
|
|
Loading…
Reference in a new issue