소스 검색

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

Tween: fix non-repeat interpolate_callback
Juan Linietsky 9 년 전
부모
커밋
34d3a4b471
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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;
 		}