Sean Sylvis wrote: > What happens when BranchGroup.addChild(null) is called? > > I was hoping to use the 'null' as a placeholder that I could replace later with a >call to setChild(), but the addition of 'null' to the BranchGroup child list seems >transient. Immediately after adding the right number of 'null's to a BranchGroup (to >get the number of children correct for replacement later), the method numChildren() >reports the correct number of children. However, when numChildren() is later (in >another method) called on this same BranchGroup, the value returned is zero.
This is a regression bug in 1.3. I alerted the team to this issue back in beta 1 and they promised they would fix it. It wasn't fixed with beta 2 and I haven't checked the FCS release to know whether it was fixed there. Like you, I used to use this tactic quite frequently in my code and 1.3 broke a lot of stuff. -- Justin Couch http://www.vlc.com.au/~justin/ Java Architect & Bit Twiddler http://www.yumetech.com/ Author, Java 3D FAQ Maintainer http://www.j3d.org/ ------------------------------------------------------------------- "Humanism is dead. Animals think, feel; so do machines now. Neither man nor woman is the measure of all things. Every organism processes data according to its domain, its environment; you, with all your brains, would be useless in a mouse's universe..." - Greg Bear, Slant ------------------------------------------------------------------- =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
