kottore / away3d

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

[Broomstick] [SOURCE ATTACHED] RemoveChild Causes Run-Time Error #178

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
[SOURCE CODE ATTACHED]

What steps will reproduce the problem?
1. Add any primitive shape or model to an ObjectContainer3D using addChild. 
2. Wait for 1ms
3. Remove the child, then add it again
4. Try to remove the child. You will get a run-time error in NodeBase.as  

What version of the product are you using? On what operating system?
Away3D Broomstick Revision 3197

Please provide any additional information below.
Please run the attached source code.

Note - I believe this is a duplicate of issue 148, but I wanted to add it 
anyway so there is at least example code to replicate the issue.

Original issue reported on code.google.com by macro.ma...@gmail.com on 26 Apr 2011 at 7:32

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by david.le...@gmail.com on 26 Apr 2011 at 11:25

GoogleCodeExporter commented 8 years ago
This issue is fixed, but there is now a new run-time-error that is fired once 
view.render() is called - please re-run the attached example code in the ticket 
and you will see this run-time error:

TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
    at away3d.core.partition::Partition3D/updateEntities()[..\src\away3d\core\partition\Partition3D.as:98]
    at away3d.core.partition::Partition3D/traverse()[..\src\away3d\core\partition\Partition3D.as:37]
    at away3d.containers::Scene3D/traversePartitions()[..\src\away3d\containers\Scene3D.as:51]
    at away3d.containers::View3D/render()[..\src\away3d\containers\View3D.as:315]
    at RemoveChildBugTest/handleEnterFrame()[C..\src\RemoveChildBugTest.as:26]

Original comment by macro.ma...@gmail.com on 26 Apr 2011 at 10:43