Larry Ramey (ramey++at++ccpo.odu.edu)
Tue, 02 Mar 1999 10:50:25 -0500
I am still looking for an explanation of why this is returning NULL:
pfNode* thisNode = (pfNode*) superK->find(name,pfNode::getClassType());
if (thisNode == NULL){
cout<<"couldn't find Node named "<<name<<"\n";
return 0;
}
else{
do stuff
}
This works for every single node I have tried except pfLightSource. It
can't find them!!!
I am seting the name with:
pfLightSource* defaultLight= new pfLightSource;
defaultLight->setPos(6,0,11,0);
defaultLight->setAmbient(.3,.3,.3);
defaultLight->setName("defaultLight");
and later use the string "defaultLight" to search for it. I have tried
the full path(doesn't work either) What am I missing!!??? Why does it
work for everything except pfLightSource????
-- --------------------------------------------------------------- Larry E. Ramey ramey++at++ccpo.odu.edu 757-683-6276(office) 757-683-5335 (CAVE) "Count the heads man." - Zaphod Bebblebrox "Won't weigh you down, with good intentions" -Sarah McLachlan
This archive was generated by hypermail 2.0b2 on Tue Mar 02 1999 - 07:50:44 PST