From 2b3d76aadeace044e2749886239214e8d576df91 Mon Sep 17 00:00:00 2001 From: Cedric Pinson Date: Wed, 9 Sep 2009 18:13:24 +0000 Subject: [PATCH] From Cedric Pinson, Fix createKeyframeContainerFromTargetValue to recreate its sampler from scratch to not change keyframe container of another sampler --- include/osgAnimation/Channel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/osgAnimation/Channel b/include/osgAnimation/Channel index ea04e6b86..f7acc4d44 100644 --- a/include/osgAnimation/Channel +++ b/include/osgAnimation/Channel @@ -102,7 +102,7 @@ namespace osgAnimation // create a key from current target value typename KeyframeContainerType::KeyType key(0, _target->getValue()); // recreate the keyframe container - getOrCreateSampler()->setKeyframeContainer(0); + _sampler = 0; getOrCreateSampler()->getOrCreateKeyframeContainer(); // add the key _sampler->getKeyframeContainerTyped()->push_back(key);