[osg-users] OpenSceneGraph-3.6.1 release candidate 2 tagged

Alberto Luaces aluaces at udc.es
Fri May 11 03:59:22 PDT 2018


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



More information about the osg-users mailing list