From: ehofman Date: Wed, 28 Sep 2005 08:00:33 +0000 (+0000) Subject: Back out a patch from Sept. 25th. Setting the *factor* to 0.0 by default isn't genera... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f3ef9b671f1aa54677ae061cdb07970022ef3b56;p=simgear.git Back out a patch from Sept. 25th. Setting the *factor* to 0.0 by default isn't generally a good idea. --- diff --git a/simgear/scene/model/animation.cxx b/simgear/scene/model/animation.cxx index 68428e4f..9a4c84c8 100644 --- a/simgear/scene/model/animation.cxx +++ b/simgear/scene/model/animation.cxx @@ -1,4 +1,4 @@ -// animation.cxx - classes to manage model animation. +/ ron.cxx - classes to manage model animation. // Written by David Megginson, started 2002. // // This file is in the Public Domain, and comes with no warranty. @@ -796,9 +796,9 @@ SGScaleAnimation::SGScaleAnimation( SGPropertyNode *prop_root, SGPropertyNode_ptr props ) : SGAnimation(props, new ssgTransform), _prop((SGPropertyNode *)prop_root->getNode(props->getStringValue("property", "/null"), true)), - _x_factor(props->getDoubleValue("x-factor", 0)), - _y_factor(props->getDoubleValue("y-factor", 0)), - _z_factor(props->getDoubleValue("z-factor", 0)), + _x_factor(props->getDoubleValue("x-factor", 1.0)), + _y_factor(props->getDoubleValue("y-factor", 1.0)), + _z_factor(props->getDoubleValue("z-factor", 1.0)), _x_offset(props->getDoubleValue("x-offset", 1.0)), _y_offset(props->getDoubleValue("y-offset", 1.0)), _z_offset(props->getDoubleValue("z-offset", 1.0)),