From: fredb Date: Sun, 21 Jan 2007 10:33:34 +0000 (+0000) Subject: Support constant scaling factor X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dd4326f7c4e0a92d251866a75b152a96139d77fe;p=simgear.git Support constant scaling factor --- 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);