Removed reference to BackgroundMode.

This commit is contained in:
nissim.hadar 2018-01-06 23:24:28 -08:00
parent 33cc17a52f
commit 1acf7bae20

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")) {