Dont set elapsed to 0 when a tween is finished.

This commit is contained in:
Jason Knight 2022-01-15 08:00:43 -06:00
parent afadd3d12e
commit 5bad0778b6

View file

@ -795,8 +795,7 @@ void Tween::_tween_process(float p_delta) {
Variant final_val = _get_final_val(data);
_apply_tween_value(data, final_val);
// Mark the tween as completed and emit the signal
data.elapsed = 0;
// Emit the signal
emit_signal("tween_completed", object, NodePath(Vector<StringName>(), data.key, false));
// If we are not repeating the tween, remove it