Explorar el Código

Merge pull request #6336 from sanikoyes/Pr-fix-inter-callback-delete

Tween: fix non-repeat interpolate_callback
Juan Linietsky hace 9 años
padre
commit
34d3a4b471
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      scene/animation/tween.cpp

+ 2 - 0
scene/animation/tween.cpp

@@ -619,6 +619,8 @@ void Tween::_tween_process(float p_delta) {
 					};
 					object->call(data.key, (const Variant **) arg, data.args, error);
 				}
+				if (!repeat)
+					call_deferred("remove", object, data.key);
 			}
 			continue;
 		}