mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 09:23:17 +02:00
Fix model overlay visible not working
This commit is contained in:
parent
c683c82817
commit
93d995a5ae
1 changed files with 3 additions and 4 deletions
|
@ -79,11 +79,10 @@ void ModelOverlay::render(RenderArgs* args) {
|
|||
_model->removeFromScene(scene, pendingChanges);
|
||||
_model->addToScene(scene, pendingChanges);
|
||||
}
|
||||
scene->enqueuePendingChanges(pendingChanges);
|
||||
|
||||
if (!_visible) {
|
||||
return;
|
||||
}
|
||||
_model->setVisibleInScene(_visible, scene);
|
||||
|
||||
scene->enqueuePendingChanges(pendingChanges);
|
||||
}
|
||||
|
||||
void ModelOverlay::setProperties(const QVariantMap& properties) {
|
||||
|
|
Loading…
Reference in a new issue