HI Andy,

The code looks correct to me, this block with the loadLibrary in will
only be called in no entry has been found to load that required tokens
in the ascii file so the fallback then has to load a new library to be
able to read it, but if no new library is loaded then it shouldn't
attempt to try and parse it again otherwise you'd end up with an
infinite loop.

Robert.

On 16 November 2011 14:38, Andy Skinner <[email protected]> wrote:
> We’re just moving from 2.8.something to 3.0.1.  Looks like I should update
> from using .osg to .osgx.
>
>
>
> While I was looking at that, I was wondering about this line from
> DogOSGWrapper.cpp:
>
>      if
> (osgDB::Registry::instance()->loadLibrary(*itr)==osgDB::Registry::LOADED)
> return writeObject(obj,fw);
>
> It looked to me that loadLibrary() was returning PREVIOUSLY_LOADED.  Should
> the condition be != osgDB::Registry::NOT_LOADED?
>
>
>
> I’m not familiar with this code, but that seemed odd to me.
>
>
>
> thanks
>
> andy
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to