20132177 / papervision3d

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

RenderParticle has null reference to DisplayObject3D instance #228

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a particle, 
2. add it to a particles object
3. add it to a scene and render

What is the expected output? What do you see instead?
The RenderParticle command on the RenderList has it's instance 
(displayObject3D) as null. This is because when creating the particle in 
it's constructor, no reference to the Particles object to which it belongs 
is available when creating the RenderCommand. I suggest treating the 
particle similar to a Line3D so in the constructor we must pass the 
Particles instance so this information is in tact. Otherwise the Particles 
object assigns the particle it's instance property when it get's added, 
but this does not update the RenderParticle command.

What version of the product are you using? On what operating system?
Great White, Mac 0sx

Please provide any additional information below.

Original issue reported on code.google.com by nice...@gmail.com on 24 Sep 2009 at 6:49