Sebastian Messerschmidt writes: > Hi, > > I've been testing the current build and just discovered, that there > are some things that are different. > > To point out one specifically: > I'm using calls to > osgDB::Registry::addEntryToObjectCache(file_name, result_node) > ommitting the options parameter which defaults to nullptr. > This gives me a lot of warnings from this line (~336 in osg/Object) > > OSG_WARN<<"Warning: osg::clone(const T*, osg::CopyOp&) passed > null object to clone, returning NULL."<<std::endl; > > Basically the "addEntryToObjectCache" explicitely clones the options: > <code> > _objectCache[FileNameOptionsPair(filename, osg::clone(options))] = > ObjectTimeStampPair(object,timestamp);) > </code> > leading to the above warning. > > Any hints? If I'm supposed to pass options, it should not default to a > nullptr. In case the nullptr is ok, the clone shouldn't be issued > IMHO.
Hi Sebastian, maybe your problem is fixed/modified by the commit from this morning https://github.com/openscenegraph/OpenSceneGraph/commit/fcde92ad89af44a9724a5ebf9fbfdf59b6e41d68 ? -- Alberto _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

