> 
> I'm not completely happy with that auto_ptr neither, been thinking about
> making a submission for fixing this and adding more generalised data
> handling (Robert mentioned some about thison osg-submissions before), but
> I haven't gotten around to do it yet, been busy days lately.
> 
> The reason for passing back that filename was that it could be stored
> under a
> different path (since the plugin had it's way with the filename).
> Now with your changes regarding file/uri handling the need for passing
> back
> the path to the document might no longer be needed (need to look more at
> the code
> before I can say for sure).
> 
[Roger James] 

Mattias,

I now pass back a URI to the document that has just been read or written
rather than a file name. But only if the DAE object has been passed in and
not internally created. This allows you to locate the correct document if
the DAE object contains more than one.

I will leave the auto_ptr stuff for you to look at. As far as I am aware
because the pointer in the map in the options object is a void* then no
destructor will be called on delete, so the auto_ptr will not work.

On an unrelated topic has anyone noticed the strange goings on with the
subject of this thread? It seems to be gaining and loosing spaces in a most
peculiar fashion.

Roger

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

Reply via email to