Added correct use of legacy background combo.

This commit is contained in:
Nissim Hadar 2018-01-04 20:30:10 -08:00
parent 033aa11aa2
commit cf7d6a2eab

View file

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