Changed build OSG_USE_REF_PTR_IMPLICIT_OUTPUT_CONVERSION to ON and then fixed all the resulting build errors.
This commit is contained in:
@@ -214,7 +214,7 @@ osgDB::ReaderWriter::ReadResult ReaderWriterVRML2::readNode(const std::string &f
|
||||
for (unsigned i = 0; i < mfn.size(); i++)
|
||||
{
|
||||
openvrml::node *vrml_node = mfn[i].get();
|
||||
osg_root->addChild(convertFromVRML(vrml_node).get());
|
||||
osg_root->addChild(convertFromVRML(vrml_node));
|
||||
}
|
||||
osgDB::getDataFilePathList().pop_front();
|
||||
return osg_root.get();
|
||||
@@ -225,7 +225,7 @@ osgDB::ReaderWriter::ReadResult ReaderWriterVRML2::readNode(const std::string &f
|
||||
catch (std::invalid_argument) { return ReadResult::FILE_NOT_HANDLED; }
|
||||
}
|
||||
|
||||
osg::ref_ptr<osg::Node> ReaderWriterVRML2::convertFromVRML(openvrml::node *obj) const
|
||||
osg::Node* ReaderWriterVRML2::convertFromVRML(openvrml::node *obj) const
|
||||
{
|
||||
//static int osgLightNum = 0; //light
|
||||
|
||||
@@ -285,7 +285,7 @@ osg::ref_ptr<osg::Node> ReaderWriterVRML2::convertFromVRML(openvrml::node *obj)
|
||||
for (it_npv = node_ptr_vector.begin(); it_npv != node_ptr_vector.end(); it_npv++)
|
||||
{
|
||||
openvrml::node *node = (*(it_npv)).get();
|
||||
osg_m->addChild(convertFromVRML(node).get());
|
||||
osg_m->addChild(convertFromVRML(node));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -294,7 +294,7 @@ osg::ref_ptr<osg::Node> ReaderWriterVRML2::convertFromVRML(openvrml::node *obj)
|
||||
// no children
|
||||
}
|
||||
|
||||
return osg_m.get();
|
||||
return osg_m.release();
|
||||
|
||||
}
|
||||
|
||||
@@ -467,7 +467,7 @@ osg::ref_ptr<osg::Node> ReaderWriterVRML2::convertFromVRML(openvrml::node *obj)
|
||||
}
|
||||
}
|
||||
|
||||
return osg_geode.get();
|
||||
return osg_geode.release();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user