Added support for automatic deletion of osg::GeoSet's attributes, via a

default AttributeDeleteFunctor which uses delete [].  Users can create
their own handlers for the attribute memory to override this default
behavior.

Fixed a typo in ReaderWriterOBJ.cpp.
This commit is contained in:
Robert Osfield
2001-12-04 22:57:40 +00:00
parent 20e3785bf8
commit a23627467b
3 changed files with 56 additions and 10 deletions

View File

@@ -94,7 +94,7 @@ osgDB::ReaderWriter::ReadResult ReaderWriterOBJ::readNode(const std::string& fil
osg_mtl = new osg::StateSet*[obj->nummaterials];
for (i = 0; i < obj->nummaterials; i++) {
GLMmaterial* omtl = &(obj->materials[i]);
osg::notify(DEBUG) << "mtl: " << omtl->name << endl;
osg::notify(osg::DEBUG_INFO) << "mtl: " << omtl->name << endl;
osg::StateSet* stateset = new osg::StateSet;
osg_mtl[i] = stateset;