From Cedric Pinson, fix copy constructor for clone operation for Bone, add a missing contructor with quaternion for Target

This commit is contained in:
Cedric Pinson
2009-06-14 23:30:47 +00:00
parent c78e41ede6
commit b2943aa50a
3 changed files with 18 additions and 6 deletions

View File

@@ -93,7 +93,7 @@ namespace osgAnimation
class OSGANIMATION_EXPORT UpdateBone : public AnimationUpdateCallback
{
public:
protected:
osg::ref_ptr<osgAnimation::Vec3Target> _position;
osg::ref_ptr<osgAnimation::QuatTarget> _quaternion;
osg::ref_ptr<osgAnimation::Vec3Target> _scale;

View File

@@ -90,7 +90,7 @@ namespace osgAnimation
public:
TemplateTarget () {}
TemplateTarget (const osg::Quat& q) { setValue(q); }
const osg::Quat& getValue() const { return _target;}
void update(float weight, const osg::Quat& val)
{