mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 15:21:56 -05:00
Fix local_delta when resetting CPUParticles
This commit is contained in:
@@ -594,7 +594,7 @@ void CPUParticles2D::_particles_process(float p_delta) {
|
|||||||
if (restart_time >= prev_time) {
|
if (restart_time >= prev_time) {
|
||||||
restart = true;
|
restart = true;
|
||||||
if (fractional_delta) {
|
if (fractional_delta) {
|
||||||
local_delta = (1.0 - restart_time + time) * lifetime;
|
local_delta = (lifetime - restart_time + time) * lifetime;
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (restart_time < time) {
|
} else if (restart_time < time) {
|
||||||
|
|||||||
Reference in New Issue
Block a user