- don't need a guarded pointer here

- shorten variable, fix indentation
This commit is contained in:
mfranz
2006-10-24 20:28:08 +00:00
parent 5876052170
commit 98a603a570

View 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);