From 525fc2f746517c6f40116092846639d19cf5c021 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 7 Oct 2002 20:01:28 +0000 Subject: [PATCH] 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. --- include/osg/AnimationPath | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/osg/AnimationPath b/include/osg/AnimationPath index f0f4503a9..c91dc76f7 100644 --- a/include/osg/AnimationPath +++ b/include/osg/AnimationPath @@ -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),