From c093841336290ba98d823c02691e4fe7602c90a3 Mon Sep 17 00:00:00 2001 From: frohlich Date: Tue, 5 Dec 2006 06:14:41 +0000 Subject: [PATCH] Modified Files: simgear/scene/model/animation.cxx: Fix a problem of muliple texturre transform not finding the correct configuration. --- simgear/scene/model/animation.cxx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/simgear/scene/model/animation.cxx b/simgear/scene/model/animation.cxx index 1ec68613..291e59b2 100644 --- a/simgear/scene/model/animation.cxx +++ b/simgear/scene/model/animation.cxx @@ -2015,9 +2015,9 @@ SGTexTransformAnimation::appendTexTranslate(const SGPropertyNode* config, value->setMax(config->getDoubleValue("max", SGLimitsd::max())); animationValue = value; } - SGVec3d axis(getConfig()->getDoubleValue("axis/x", 0), - getConfig()->getDoubleValue("axis/y", 0), - getConfig()->getDoubleValue("axis/z", 0)); + SGVec3d axis(config->getDoubleValue("axis/x", 0), + config->getDoubleValue("axis/y", 0), + config->getDoubleValue("axis/z", 0)); Translation* translation; translation = new Translation(normalize(axis)); translation->setValue(config->getDoubleValue("starting-position", 0)); @@ -2051,12 +2051,12 @@ SGTexTransformAnimation::appendTexRotate(const SGPropertyNode* config, value->setMax(config->getDoubleValue("max-deg", SGLimitsd::max())); animationValue = value; } - SGVec3d axis(getConfig()->getDoubleValue("axis/x", 0), - getConfig()->getDoubleValue("axis/y", 0), - getConfig()->getDoubleValue("axis/z", 0)); - SGVec3d center(getConfig()->getDoubleValue("center/x", 0), - getConfig()->getDoubleValue("center/y", 0), - getConfig()->getDoubleValue("center/z", 0)); + SGVec3d axis(config->getDoubleValue("axis/x", 0), + config->getDoubleValue("axis/y", 0), + config->getDoubleValue("axis/z", 0)); + SGVec3d center(config->getDoubleValue("center/x", 0), + config->getDoubleValue("center/y", 0), + config->getDoubleValue("center/z", 0)); Rotation* rotation; rotation = new Rotation(normalize(axis), center); rotation->setValue(config->getDoubleValue("starting-position-deg", 0)); -- 2.39.5