mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
Fix the particle build error when culling checked. (#7031)
This commit is contained in:
@@ -989,6 +989,6 @@ export class ParticleSystemComponent extends RenderableComponent {
|
||||
}
|
||||
|
||||
public _onBeforeSerialize (props) {
|
||||
return this.enableCulling ? props.filter(p => !PARTICLE_MODULE_PROPERTY.includes(p) || this[p].enable) : props;
|
||||
return this.enableCulling ? props.filter(p => !PARTICLE_MODULE_PROPERTY.includes(p) || (this[p] && this[p].enable)) : props;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user