mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-07 15:54:31 +02:00
Set skybox mode as per legacy background mode if needed.
This commit is contained in:
parent
93fffb4bbe
commit
d0c0d6a388
1 changed files with 6 additions and 1 deletions
|
@ -2288,7 +2288,12 @@ bool EntityTree::readFromMap(QVariantMap& map) {
|
|||
}
|
||||
|
||||
if (!entityMap.contains("skyboxMode")) {
|
||||
properties.setSkyboxMode(COMPONENT_MODE_ENABLED);
|
||||
if (entityMap.contains("backgroundMode") && (entityMap["backgroundMode"].toString() == "nothing")) {
|
||||
properties.setSkyboxMode(COMPONENT_MODE_INHERIT);
|
||||
} else {
|
||||
// either the background mode field is missing (shouldn't happen) or the background mode is "skybox"
|
||||
properties.setSkyboxMode(COMPONENT_MODE_ENABLED);
|
||||
}
|
||||
}
|
||||
|
||||
if (!entityMap.contains("ambientLightMode")) {
|
||||
|
|
Loading…
Reference in a new issue