Browse Source

Merge pull request #8204 from Shin-NiL/2.1

Honor the Tween's final values
Rémi Verschelde 8 years ago
parent
commit
6392381c16
1 changed files with 1 additions and 0 deletions
  1. 1 0
      scene/animation/tween.cpp

+ 1 - 0
scene/animation/tween.cpp

@@ -609,6 +609,7 @@ void Tween::_tween_process(float p_delta) {
 		_apply_tween_value(data, result);
 
 		if (data.finish) {
+			_apply_tween_value(data, data.final_val);
 			emit_signal("tween_complete", object, data.key);
 			// not repeat mode, remove completed action
 			if (!repeat)