Object::className() return char* so the the line:
if (node->className()=="Geode")
Is comparing two char* not doing a full string comparison as you are assuming.
if (strcmp(node->className(),"Geode")==0)
Would work.
Robert.
On 5/19/06, Dorian Dussel <[EMAIL PROTECTED]> wrote:
Thanks for your answer !!I tried also to do :osg::Node *node = osgDB::readNodeFile("myscene.osg") ;
if(node->className() == "Geode"){...}else{if(node->className() == "Group") {...}}But It never enter in the loop !! I think there is a problem of cast !!
Faites de Yahoo! votre page d'accueil sur le web pour retrouver directement vos services préférés : vérifiez vos nouveaux mails, lancez vos recherches et suivez l'actualité en temps réel. Cliquez ici .
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
