mirror of
https://github.com/lubosz/overte.git
synced 2025-08-16 16:14:21 +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->removeFromScene(scene, pendingChanges);
|
||||||
_model->addToScene(scene, pendingChanges);
|
_model->addToScene(scene, pendingChanges);
|
||||||
}
|
}
|
||||||
scene->enqueuePendingChanges(pendingChanges);
|
|
||||||
|
|
||||||
if (!_visible) {
|
_model->setVisibleInScene(_visible, scene);
|
||||||
return;
|
|
||||||
}
|
scene->enqueuePendingChanges(pendingChanges);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ModelOverlay::setProperties(const QVariantMap& properties) {
|
void ModelOverlay::setProperties(const QVariantMap& properties) {
|
||||||
|
|
Loading…
Reference in a new issue