mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 13:43:49 +02:00
Added correct use of legacy background combo.
This commit is contained in:
parent
adbc4d0c39
commit
c10d2a5461
1 changed files with 8 additions and 1 deletions
|
@ -2285,9 +2285,16 @@ bool EntityTree::readFromMap(QVariantMap& map) {
|
|||
if (!entityMap.contains("keyLightMode")) {
|
||||
properties.setKeyLightMode(COMPONENT_MODE_ENABLED);
|
||||
}
|
||||
|
||||
if (!entityMap.contains("skyboxMode")) {
|
||||
properties.setSkyboxMode(COMPONENT_MODE_ENABLED);
|
||||
if (entityMap.contains("backgroundMode") && properties.getBackgroundMode() == "inherit") {
|
||||
// The content creator has set the combo to NOTHING - this is actually inherit
|
||||
properties.setSkyboxMode(COMPONENT_MODE_INHERIT);
|
||||
} else {
|
||||
properties.setSkyboxMode(COMPONENT_MODE_ENABLED);
|
||||
}
|
||||
}
|
||||
|
||||
if (!entityMap.contains("ambientLightMode")) {
|
||||
properties.setAmbientLightMode(COMPONENT_MODE_ENABLED);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue