Set the default values for scale to 1,1,1. This fixes the bug obsevered when

using AnimationPath with MatrixTransform without setting the scale value of
the osg::AnimationPath::ControlPoint's.
This commit is contained in:
Robert Osfield
2002-10-07 20:01:28 +00:00
parent b7372fb4cb
commit 525fc2f746

View File

@@ -24,17 +24,18 @@ class SG_EXPORT AnimationPath : public osg::Referenced
struct ControlPoint
{
ControlPoint() {}
ControlPoint():
_scale(1.0f,1.0f,1.0f) {}
ControlPoint(const osg::Vec3& position):
_position(position),
_rotation(),
_scale() {}
_scale(1.0f,1.0f,1.0f) {}
ControlPoint(const osg::Vec3& position, const osg::Quat& rotation):
_position(position),
_rotation(rotation),
_scale() {}
_scale(1.0f,1.0f,1.0f) {}
ControlPoint(const osg::Vec3& position, const osg::Quat& rotation, const osg::Vec3& scale):
_position(position),