Csaba "Jester" HALASZ: segfault--
This commit is contained in:
parent
9721d7811f
commit
fd83c9fa22
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue