|
@@ -619,6 +619,9 @@ class GpuParticles extends h3d.scene.MultiMaterial {
|
|
currentTime += ctx.elapsedTime;
|
|
currentTime += ctx.elapsedTime;
|
|
if( prev < duration && currentTime >= duration )
|
|
if( prev < duration && currentTime >= duration )
|
|
onEnd();
|
|
onEnd();
|
|
|
|
+ if( primitive == null || primitive.buffer.isDisposed() )
|
|
|
|
+ for( g in groups )
|
|
|
|
+ g.needRebuild = true;
|
|
for( g in groups )
|
|
for( g in groups )
|
|
if( g.needRebuild ) {
|
|
if( g.needRebuild ) {
|
|
rebuild(ctx.camera);
|
|
rebuild(ctx.camera);
|