Changeset 10656 for OpenSceneGraph/trunk/include/osgAnimation/Channel
- Timestamp:
- 10/21/09 17:45:13 (4 years ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osgAnimation/Channel (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osgAnimation/Channel
r10581 r10656 78 78 79 79 TemplateChannel (const TemplateChannel& channel) : 80 Channel(channel), 81 _target(new TargetType(*channel.getTargetTyped())), 82 _sampler(channel._sampler.get()) 80 Channel(channel) 83 81 { 82 if (channel.getTargetTyped()) 83 _target = new TargetType(*channel.getTargetTyped()); 84 85 if (channel.getSamplerTyped()) 86 _sampler = new SamplerType(*channel.getSamplerTyped()); 84 87 } 85 88 … … 103 106 typename KeyframeContainerType::KeyType key(0, _target->getValue()); 104 107 // recreate the keyframe container 105 _sampler = 0;108 getOrCreateSampler()->setKeyframeContainer(0); 106 109 getOrCreateSampler()->getOrCreateKeyframeContainer(); 107 110 // add the key
