Dont set elapsed to 0 when a tween is finished.
This commit is contained in:
parent
afadd3d12e
commit
5bad0778b6
1 changed files with 1 additions and 2 deletions
|
@ -795,8 +795,7 @@ void Tween::_tween_process(float p_delta) {
|
||||||
Variant final_val = _get_final_val(data);
|
Variant final_val = _get_final_val(data);
|
||||||
_apply_tween_value(data, final_val);
|
_apply_tween_value(data, final_val);
|
||||||
|
|
||||||
// Mark the tween as completed and emit the signal
|
// Emit the signal
|
||||||
data.elapsed = 0;
|
|
||||||
emit_signal("tween_completed", object, NodePath(Vector<StringName>(), data.key, false));
|
emit_signal("tween_completed", object, NodePath(Vector<StringName>(), data.key, false));
|
||||||
|
|
||||||
// If we are not repeating the tween, remove it
|
// If we are not repeating the tween, remove it
|
||||||
|
|
Loading…
Reference in a new issue