fix: incorrect position of world space trail particles

close #209
This commit is contained in:
mob-sakai
2022-06-28 00:20:37 +09:00
parent 8034228713
commit fb7f308f09

View File

@@ -461,14 +461,6 @@ namespace Coffee.UIExtensions
_prewarm = false; _prewarm = false;
} }
// Normal simulation for non-scaling or local spacing.
var isScaling = scale != Vector3.one;
if (!isScaling || _particleSystem.GetActualSimulationSpace() == ParticleSystemSimulationSpace.Local)
{
_particleSystem.Simulate(deltaTime, false, false, false);
return;
}
// Emitted particles found. // Emitted particles found.
if (_prevParticleCount != _particleSystem.particleCount) if (_prevParticleCount != _particleSystem.particleCount)
{ {