Sfoglia il codice sorgente

Tween: fix non-repeat interpolate_callback does not delete after call triggered

sanikoyes 9 anni fa
parent
commit
cccea7e0b4
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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;
 		}