alexvoz / as3isolib

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

scene.addChild sceneRemoveChild issue #44

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Create iso scene 
2.Add an IsoBox to it
3.remove IsoBox by using IsoScene(scene).removeChild(_box)
4.Add another IsoBox to the scene, render scene

What is the expected output? What do you see instead?
Expected output: continues to work, no crashes
Current output: [Fault] exception, information=Error: parameter child is not 
found within node structure, unless first i set includeInLayout=false;

What version of the product are you using? On what operating system?
as3isolib.v1.core.swc, Windows 7

Please provide any additional information below.

Suggested change is to remove the includeInLayout functionality from 
IIsoContainer, so that scene.addChild() scene.removeChild() behaves the same 
ways as flash display list, without extra flags required. Loose objects should 
be handled by the code implementing the engine, not the engine itself. If there 
is a reason behind this architecture, please provide more information in wiki

Original issue reported on code.google.com by flasher4...@gmail.com on 16 Dec 2011 at 3:52