light animation: avoid that similar effects are merged
This commit is contained in:
parent
77b8b278ea
commit
de191107a9
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user