From 98a603a570130498364e1e9a07dc30629f239e8a Mon Sep 17 00:00:00 2001 From: mfranz Date: Tue, 24 Oct 2006 20:28:08 +0000 Subject: [PATCH] - don't need a guarded pointer here - shorten variable, fix indentation --- simgear/scene/model/model.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/simgear/scene/model/model.cxx b/simgear/scene/model/model.cxx index 449ee51b..622e8fcd 100644 --- a/simgear/scene/model/model.cxx +++ b/simgear/scene/model/model.cxx @@ -352,10 +352,10 @@ sgLoad3DModel( const string &fg_root, const string &path, throw; } - SGPropertyNode_ptr cond_node = node->getNode("condition", false); - if (cond_node) { - align->setUserData(new SGConditionalRender(sgReadCondition(prop_root, cond_node))); - align->setTravCallback(SSG_CALLBACK_PRETRAV, model_condition_callback); + SGPropertyNode *cond = node->getNode("condition", false); + if (cond) { + align->setUserData(new SGConditionalRender(sgReadCondition(prop_root, cond))); + align->setTravCallback(SSG_CALLBACK_PRETRAV, model_condition_callback); } align->addKid(kid); -- 2.39.5