3
0
Fork 0
mirror of https://github.com/JulianGro/overte.git synced 2025-04-29 13:03:11 +02:00

Merge branch 'keylightInheritance' of https://github.com/NissimHadar/hifi into keylightInheritance

This commit is contained in:
Nissim Hadar 2018-01-06 23:26:28 -08:00
commit bc98cbd58f

View file

@ -2287,11 +2287,8 @@ bool EntityTree::readFromMap(QVariantMap& map) {
properties.setKeyLightMode(COMPONENT_MODE_ENABLED);
}
if (entityMap.contains("backgroundMode") && properties.getBackgroundModeAsString() == "skybox") {
if (!entityMap.contains("skyboxMode")) {
properties.setSkyboxMode(COMPONENT_MODE_ENABLED);
} else {
// The content creator has set the combo to NOTHING - this is actually inherit
properties.setSkyboxMode(COMPONENT_MODE_INHERIT);
}
if (!entityMap.contains("ambientLightMode")) {