From Mathias Froehlich, "the attached patch adds an additional null pointer check"
This commit is contained in:
parent
2ddd53730e
commit
1016092720
@ -329,6 +329,7 @@ osg::Node* ReaderWriterVRML2::convertFromVRML(openvrml::node *obj) const
|
||||
const openvrml::sfnode * sfn = dynamic_cast<const openvrml::sfnode *>(fv.get());
|
||||
openvrml::sfnode::value_type node_ptr = sfn->value();
|
||||
|
||||
if (node_ptr.get()) {
|
||||
// is it indexed_face_set_node ?
|
||||
if (node_ptr->type().id()=="IndexedFaceSet")
|
||||
osg_geom = convertVRML97IndexedFaceSet(node_ptr.get());
|
||||
@ -354,6 +355,7 @@ osg::Node* ReaderWriterVRML2::convertFromVRML(openvrml::node *obj) const
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
osg::ref_ptr<osg::Geode> osg_geode = new osg::Geode();
|
||||
osg_geode->addDrawable(osg_geom.get());
|
||||
|
Loading…
Reference in New Issue
Block a user