From: Frederic Bouvier Date: Sat, 14 Apr 2012 21:16:23 +0000 (+0200) Subject: light animation: avoid that similar effects are merged X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=de191107a9cea6c4145b4f029340b9da63654bb8;p=simgear.git light animation: avoid that similar effects are merged --- diff --git a/simgear/scene/model/SGLightAnimation.cxx b/simgear/scene/model/SGLightAnimation.cxx index e2f25d96..6215efd9 100644 --- a/simgear/scene/model/SGLightAnimation.cxx +++ b/simgear/scene/model/SGLightAnimation.cxx @@ -147,6 +147,7 @@ SGLightAnimation::install(osg::Node& node) EffectMap::iterator iter = lightEffectMap.find(_key); if (iter == lightEffectMap.end()) { SGPropertyNode_ptr effectProp = new SGPropertyNode; + makeChild(effectProp, "name")->setStringValue(_key); makeChild(effectProp, "inherits-from")->setStringValue("Effects/light-spot"); double dim = 1.0; if (_animationValue.valid()) @@ -190,6 +191,7 @@ SGLightAnimation::install(osg::Node& node) EffectMap::iterator iter = lightEffectMap.find(_key); if (iter == lightEffectMap.end()) { SGPropertyNode_ptr effectProp = new SGPropertyNode; + makeChild(effectProp, "name")->setStringValue(_key); makeChild(effectProp, "inherits-from")->setStringValue("Effects/light-point"); double dim = 1.0; if (_animationValue.valid())