1
0
Fork 0

Csaba "Jester" HALASZ: segfault--

This commit is contained in:
mfranz 2008-12-05 16:47:11 +00:00
parent 9721d7811f
commit fd83c9fa22

View file

@ -16,7 +16,6 @@
#include <simgear/scene/util/SGNodeMasks.hxx> #include <simgear/scene/util/SGNodeMasks.hxx>
#include "panelnode.hxx" #include "panelnode.hxx"
#include "model_panel.hxx" #include "model_panel.hxx"
using std::vector; using std::vector;
@ -40,7 +39,8 @@ osg::Node *
fgLoad3DModelPanel(const string &path, SGPropertyNode *prop_root) fgLoad3DModelPanel(const string &path, SGPropertyNode *prop_root)
{ {
osg::Node* node = SGModelLib::loadModel(path, prop_root, load_panel); osg::Node* node = SGModelLib::loadModel(path, prop_root, load_panel);
node->setNodeMask(~SG_NODEMASK_TERRAIN_BIT); if (node)
node->setNodeMask(~SG_NODEMASK_TERRAIN_BIT);
return node; return node;
} }