Am 02.06.2016 um 13:01 schrieb Robert Osfield:
> One would simply use a osg::clone(options) to generate the options
> object to store in the cache, this would insulate the cache from being
> invalidated by changes to the original Options object passed in,
Got it, thanks :-)

I added initial support to class ObjectCache, see
https://github.com/rhabacker/osg/commit/e3539ea0185a4013514850c3577180aaa38c895d

While trying to test the implementation with osgviewer it turns out that
it is not possible to setup a testcase using command line.

I used

osgviewer -O convertToFeed test-file1.flt -O convertToKilometers
test-file2.flt

and got always empty options.


Adding test1.flt with options '' to ObjectCache 0x15fadb0

A quick check shows that in Registry::readCommandLine()  all -O options
are read and saved in one Options instance in Registry::_options.

void Registry::readCommandLine(osg::ArgumentParser& arguments)

...
    while(arguments.read("-O",value))
    {
        setOptions(new Options(value));
    }

So I thought there may be a change to get options using one file:

osgviewer -O convertToFeed test-file1.flt


but still got

adding test1.flt with options '' to ObjectCache 0x12b9db0

Any idea what's going wrong and how to fix ?

Cheers
Ralf

_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to