mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-13 21:27:21 +02:00
Fixing the case when the bound changes without the rest of the properties
This commit is contained in:
parent
6dbbd6c8d0
commit
cba913c068
1 changed files with 2 additions and 15 deletions
|
@ -145,10 +145,7 @@ void RenderableZoneEntityItem::somethingChangedNotification() {
|
|||
DependencyManager::get<EntityTreeRenderer>()->updateZone(_id);
|
||||
|
||||
// If graphics elements are changed, we need to update the render items
|
||||
if (_keyLightPropertiesChanged || _backgroundPropertiesChanged || _stagePropertiesChanged || _skyboxPropertiesChanged) {
|
||||
|
||||
notifyChangedRenderItem();
|
||||
}
|
||||
notifyChangedRenderItem();
|
||||
|
||||
// Poopagate back to parent
|
||||
ZoneEntityItem::somethingChangedNotification();
|
||||
|
@ -290,17 +287,7 @@ void RenderableZoneEntityItem::removeFromScene(EntityItemPointer self, const ren
|
|||
}
|
||||
|
||||
void RenderableZoneEntityItem::notifyBoundChanged() {
|
||||
if (!render::Item::isValidID(_myMetaItem)) {
|
||||
return;
|
||||
}
|
||||
render::Transaction transaction;
|
||||
render::ScenePointer scene = AbstractViewStateInterface::instance()->getMain3DScene();
|
||||
if (scene) {
|
||||
transaction.updateItem<RenderableZoneEntityItemMeta>(_myMetaItem, [](RenderableZoneEntityItemMeta& data) {});
|
||||
scene->enqueueTransaction(transaction);
|
||||
} else {
|
||||
qCWarning(entitiesrenderer) << "RenderableZoneEntityItem::notifyBoundChanged(), Unexpected null scene, possibly during application shutdown";
|
||||
}
|
||||
notifyChangedRenderItem();
|
||||
}
|
||||
|
||||
void RenderableZoneEntityItem::updateKeySunFromEntity(RenderableZoneEntityItemMeta& keyZonePayload) {
|
||||
|
|
Loading…
Reference in a new issue