Change #3588 to be editor-only
This commit is contained in:
@@ -548,11 +548,14 @@ void ParticleEffect::OnParticleSystemModified()
|
||||
void ParticleEffect::OnParticleSystemLoaded()
|
||||
{
|
||||
ApplyModifiedParameters();
|
||||
#if USE_EDITOR
|
||||
// When one of the emitters gets edited, cached parameters need to be applied
|
||||
auto& emitters = ParticleSystem.Get()->Emitters;
|
||||
for (auto& emitter : emitters)
|
||||
{
|
||||
emitter.Loaded.BindUnique<ParticleEffect, &ParticleEffect::OnParticleEmitterLoaded>(this);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void ParticleEffect::OnParticleEmitterLoaded()
|
||||
|
||||
Reference in New Issue
Block a user