]> git.mxchange.org Git - simgear.git/commitdiff
- don't need a guarded pointer here
authormfranz <mfranz>
Tue, 24 Oct 2006 20:28:08 +0000 (20:28 +0000)
committermfranz <mfranz>
Tue, 24 Oct 2006 20:28:08 +0000 (20:28 +0000)
- shorten variable, fix indentation

simgear/scene/model/model.cxx

index 449ee51bbe3113cea2b1de2dea3a9fb22417e40f..622e8fcd8c5025fff286c0aead8838dfaaa62891 100644 (file)
@@ -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);