thcmedia / papervision3d

Automatically exported from code.google.com/p/papervision3d
0 stars 0 forks source link

DisplayObject3D.removeChild is flagging an error in the latest version (802) #133

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Before I updated, removeChild worked fine
2. In tracking this down I see that a get method ;'children' is returning 
_childrenByName.  When I changed this to _children it worked fine.
3. There are two dictionaries _children and _childrenByName. The method I 
called 'removeChild' is not using the name but the object itself, so it 
failed to remove the child from the display list.
4. When I changed the get method (approx line 224 in DisplayObject3D) 
everything worked correctly.
5. Even removeChldByName failed because at some point it also called the 
same get method mentioned above.

What is the expected output? What do you see instead?

An error message "DisplayObject3D already has a parent, ie is already 
added to scene."

What version of the product are you using? On what operating system?

802

Please provide any additional information below.

Original issue reported on code.google.com by deana...@yahoo.com on 17 Nov 2008 at 5:50

GoogleCodeExporter commented 8 years ago
I noticed version 803 fixed this problem a different way.  Thanks.

Original comment by deana...@yahoo.com on 18 Nov 2008 at 5:57

GoogleCodeExporter commented 8 years ago
Thank you for reporting.

Original comment by r.hauw...@gmail.com on 21 Nov 2008 at 1:12