[osg-users] Collada node name vs id

2013-10-10 Thread Farshid Lashkari
Hi all,

I noticed that the Collada loader was modified a while back to assign the
node name to the osg::Node, instead of the node ID. This seems like a good
change overall, but we have existing customers/applications that depend on
the previous use of the node ID.

In order to support legacy code, I'm thinking of making one of the
following changes to the Collada loader:

1) Add a loader option that will control whether the node id or name is
assigned to the osg::Node (defaulting to name)

2) Assign the node ID as a named user data attribute of the osg::Node (ie.
collada_node_id)

I'm leaning towards option #2. I know this probably does not affect most
users, but does anybody have any thoughts/suggestions on the matter?

Cheers,
Farshid
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Collada node name vs id

2013-10-10 Thread Robert Osfield
Hi Farshid,

Option 2 gets my vote.

Robert.


On 10 October 2013 17:22, Farshid Lashkari fla...@gmail.com wrote:

 Hi all,

 I noticed that the Collada loader was modified a while back to assign the
 node name to the osg::Node, instead of the node ID. This seems like a good
 change overall, but we have existing customers/applications that depend on
 the previous use of the node ID.

 In order to support legacy code, I'm thinking of making one of the
 following changes to the Collada loader:

 1) Add a loader option that will control whether the node id or name is
 assigned to the osg::Node (defaulting to name)

 2) Assign the node ID as a named user data attribute of the osg::Node (ie.
 collada_node_id)

 I'm leaning towards option #2. I know this probably does not affect most
 users, but does anybody have any thoughts/suggestions on the matter?

 Cheers,
 Farshid


 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org