diff --git a/simgear/scene/model/SGLight.cxx b/simgear/scene/model/SGLight.cxx index ba37f863..8d5670c4 100644 --- a/simgear/scene/model/SGLight.cxx +++ b/simgear/scene/model/SGLight.cxx @@ -117,8 +117,9 @@ SGLight::appendLight(const SGPropertyNode* configNode, //-- copy config to prop tree -- const std::string propPath {"/scenery/lights"}; const std::string propName {"light"}; - SGPropertyNode_ptr _pConfig = simgear::getPropertyRoot()->getNode(propPath, true) - ->addChild(propName); + SGPropertyNode_ptr _pConfig = simgear::getPropertyRoot()->getNode(propPath, true); + _pConfig->setAttribute(SGPropertyNode::VALUE_CHANGED_DOWN, true); + _pConfig = _pConfig->addChild(propName); copyProperties(configNode, _pConfig);