Merge pull request #56814 from winterpixelgames/fix-tween-tell

[3.x] Bugfix - Fix tween.tell() returning 0 at end of tween
This commit is contained in:
Rémi Verschelde 2022-01-16 01:32:45 +01:00 committed by GitHub
commit f30c7009ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

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