浏览代码

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

[3.x] Bugfix - Fix tween.tell() returning 0 at end of tween
Rémi Verschelde 3 年之前
父节点
当前提交
f30c7009ce
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      scene/animation/tween.cpp

+ 1 - 2
scene/animation/tween.cpp

@@ -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