mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:50:00 +02:00
update procedural skybox on user data change
This commit is contained in:
parent
ec439086a2
commit
de4a2ca3b2
1 changed files with 5 additions and 1 deletions
|
@ -251,7 +251,7 @@ void ZoneEntityRenderer::doRenderUpdateSynchronousTyped(const ScenePointer& scen
|
||||||
updateAmbientLightFromEntity(entity);
|
updateAmbientLightFromEntity(entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (skyboxChanged) {
|
if (skyboxChanged || _proceduralUserData != entity->getUserData()) {
|
||||||
updateKeyBackgroundFromEntity(entity);
|
updateKeyBackgroundFromEntity(entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -295,6 +295,10 @@ bool ZoneEntityRenderer::needsRenderUpdateFromTypedEntity(const TypedEntityPoint
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (entity->getUserData() != _proceduralUserData) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
if (_typedEntity->getCompoundShapeURL() != _lastShapeURL) {
|
if (_typedEntity->getCompoundShapeURL() != _lastShapeURL) {
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue