mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 20:34:07 +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);
|
||||
}
|
||||
|
||||
if (skyboxChanged) {
|
||||
if (skyboxChanged || _proceduralUserData != entity->getUserData()) {
|
||||
updateKeyBackgroundFromEntity(entity);
|
||||
}
|
||||
|
||||
|
@ -295,6 +295,10 @@ bool ZoneEntityRenderer::needsRenderUpdateFromTypedEntity(const TypedEntityPoint
|
|||
return true;
|
||||
}
|
||||
|
||||
if (entity->getUserData() != _proceduralUserData) {
|
||||
return true;
|
||||
}
|
||||
|
||||
#if 0
|
||||
if (_typedEntity->getCompoundShapeURL() != _lastShapeURL) {
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue