From dd4326f7c4e0a92d251866a75b152a96139d77fe Mon Sep 17 00:00:00 2001 From: fredb Date: Sun, 21 Jan 2007 10:33:34 +0000 Subject: [PATCH] Support constant scaling factor --- simgear/scene/model/animation.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/simgear/scene/model/animation.cxx b/simgear/scene/model/animation.cxx index 4f33f8ce..59e60737 100644 --- a/simgear/scene/model/animation.cxx +++ b/simgear/scene/model/animation.cxx @@ -1050,9 +1050,9 @@ public: if (!_condition || _condition->test()) { SGScaleAnimation::Transform* transform; transform = static_cast(node); - SGVec3d scale(_animationValue[0]->getValue(), - _animationValue[1]->getValue(), - _animationValue[2]->getValue()); + SGVec3d scale(_animationValue[0] ? _animationValue[0]->getValue() : 1.0, + _animationValue[1] ? _animationValue[1]->getValue() : 1.0, + _animationValue[2] ? _animationValue[2]->getValue() : 1.0); transform->setScaleFactor(scale); } traverse(node, nv); -- 2.39.5