mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 07:37:20 +02:00
Only check for zone fields.
This commit is contained in:
parent
cf7d6a2eab
commit
579aec7118
1 changed files with 16 additions and 14 deletions
|
@ -2281,7 +2281,8 @@ bool EntityTree::readFromMap(QVariantMap& map) {
|
||||||
properties.setOwningAvatarID(myNodeID);
|
properties.setOwningAvatarID(myNodeID);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TEMPORARY fix for older content not containing these fields
|
// TEMPORARY fix for older content not containing these fields in the zones
|
||||||
|
if (properties.getType() == EntityTypes::EntityType::Zone) {
|
||||||
if (!entityMap.contains("keyLightMode")) {
|
if (!entityMap.contains("keyLightMode")) {
|
||||||
properties.setKeyLightMode(COMPONENT_MODE_ENABLED);
|
properties.setKeyLightMode(COMPONENT_MODE_ENABLED);
|
||||||
}
|
}
|
||||||
|
@ -2298,6 +2299,7 @@ bool EntityTree::readFromMap(QVariantMap& map) {
|
||||||
if (!entityMap.contains("ambientLightMode")) {
|
if (!entityMap.contains("ambientLightMode")) {
|
||||||
properties.setAmbientLightMode(COMPONENT_MODE_ENABLED);
|
properties.setAmbientLightMode(COMPONENT_MODE_ENABLED);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
EntityItemPointer entity = addEntity(entityItemID, properties);
|
EntityItemPointer entity = addEntity(entityItemID, properties);
|
||||||
if (!entity) {
|
if (!entity) {
|
||||||
|
|
Loading…
Reference in a new issue