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

(cherry picked from commit cccea7e0b4)
This commit is contained in:
sanikoyes 2016-08-31 10:27:20 +08:00 committed by Rémi Verschelde
parent 5653ac41f9
commit 75f51aece9

View file

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