MengbinZhu / stardust-particle-engine

Automatically exported from code.google.com/p/stardust-particle-engine
0 stars 0 forks source link

Changing the displayObjectClass for PooledDisplayObjectClass #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start up a emitter which contains a PooledDisplayObjectClass
2. Change displayObjectClass to a new class
3. Should crash BitmapRenderer when attempting to draw new particles

What is the expected output? What do you see instead?
Expect to be able to change the displayObjectClass on the fly.

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

Please provide any additional information below.
I was able to resolve this by modifying DisplayObjectPool.reset.  All I needed 
to do was add _position = 0;

Original issue reported on code.google.com by jk...@oneloop.com on 13 Sep 2010 at 7:55

GoogleCodeExporter commented 9 years ago

Original comment by cjcat2266 on 15 Jan 2011 at 6:15