From Cedric Pinson, fix copy constructor for clone operation for Bone, add a missing contructor with quaternion for Target
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user