From f3ef9b671f1aa54677ae061cdb07970022ef3b56 Mon Sep 17 00:00:00 2001 From: ehofman Date: Wed, 28 Sep 2005 08:00:33 +0000 Subject: [PATCH] Back out a patch from Sept. 25th. Setting the *factor* to 0.0 by default isn't generally a good idea. --- simgear/scene/model/animation.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)), -- 2.39.5