(
SG_NASAL,
SG_INFO,
- "Removed model with script(s) (branch = " << _branch << ")"
+ "Removed model with script(s) (branch = " << _branch.get() << ")"
);
}
.method("getPose", &f_node_getPose);
}
- module.set("_model", NodeRef(_branch));
+ module.set("_model", _branch);
naRef arg[2];
arg[0] = nasalSys->propNodeGhost(_root);
//------------------------------------------------------------------------------
osg::Node* FGNasalModelData::getNode()
{
- return _branch;
+ return _branch.get();
}
//------------------------------------------------------------------------------
std::string _module, _path;
SGPropertyNode_ptr _root, _prop;
SGConstPropertyNode_ptr _load, _unload;
- osg::Node *_branch;
+ osg::ref_ptr<osg::Node> _branch;
unsigned int _module_id;
};