From de191107a9cea6c4145b4f029340b9da63654bb8 Mon Sep 17 00:00:00 2001 From: Frederic Bouvier Date: Sat, 14 Apr 2012 23:16:23 +0200 Subject: [PATCH] light animation: avoid that similar effects are merged --- simgear/scene/model/SGLightAnimation.cxx | 2 ++ 1 file changed, 2 insertions(+) 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()) -- 2.39.5