diff --git a/cocos/3d/framework/particle/particle-system-component.ts b/cocos/3d/framework/particle/particle-system-component.ts index f6feb89feb..7f47a5dcb6 100644 --- a/cocos/3d/framework/particle/particle-system-component.ts +++ b/cocos/3d/framework/particle/particle-system-component.ts @@ -413,6 +413,9 @@ export class ParticleSystemComponent extends RenderableComponent { r._model.destroy(); r._model = null; r.onEnable(); + r._updateModel(); + r._updateMaterialParams(); + r._updateTrailMaterial(); } } diff --git a/cocos/renderer/models/particle-batch-model.ts b/cocos/renderer/models/particle-batch-model.ts index 92b3f98853..666359153f 100644 --- a/cocos/renderer/models/particle-batch-model.ts +++ b/cocos/renderer/models/particle-batch-model.ts @@ -227,7 +227,7 @@ export default class ParticleBatchModel extends Model { offset += 2; // this._vdataF32![offset++] = index; // this._vdataF32![offset++] = pvdata[1].y; - this._vdataF32![offset++] = index; + this._vdataF32![offset++] = pvdata[1].z; this._vdataF32![offset++] = pvdata[2].x; this._vdataF32![offset++] = pvdata[2].y; this._vdataUint32![offset++] = pvdata[3];