From 04537d1e96fc2217fb9f82e2ad5ba8b6f7ff2196 Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Sat, 28 Oct 2023 13:10:33 +0200 Subject: [PATCH] Fix setting animation callback mode process --- tests/test_await_animation.h | 2 +- tests/test_pause_animation.h | 2 +- tests/test_play_animation.h | 2 +- tests/test_stop_animation.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_await_animation.h b/tests/test_await_animation.h index 17312a9..00831db 100644 --- a/tests/test_await_animation.h +++ b/tests/test_await_animation.h @@ -29,7 +29,7 @@ namespace TestAwaitAnimation { TEST_CASE("[SceneTree][LimboAI] BTAwaitAnimation") { AnimationPlayer *player = memnew(AnimationPlayer); SceneTree::get_singleton()->get_root()->add_child(player); - player->set_process_callback(AnimationPlayer::AnimationProcessCallback::ANIMATION_PROCESS_IDLE); + player->set_callback_mode_process(AnimationMixer::ANIMATION_CALLBACK_MODE_PROCESS_IDLE); Ref anim_lib = memnew(AnimationLibrary); Ref anim = memnew(Animation); diff --git a/tests/test_pause_animation.h b/tests/test_pause_animation.h index a6bc775..41731bf 100644 --- a/tests/test_pause_animation.h +++ b/tests/test_pause_animation.h @@ -27,7 +27,7 @@ namespace TestPauseAnimation { TEST_CASE("[SceneTree][LimboAI] BTPauseAnimation") { AnimationPlayer *player = memnew(AnimationPlayer); SceneTree::get_singleton()->get_root()->add_child(player); - player->set_process_callback(AnimationPlayer::AnimationProcessCallback::ANIMATION_PROCESS_IDLE); + player->set_callback_mode_process(AnimationMixer::ANIMATION_CALLBACK_MODE_PROCESS_IDLE); Ref anim_lib = memnew(AnimationLibrary); Ref anim = memnew(Animation); diff --git a/tests/test_play_animation.h b/tests/test_play_animation.h index 93e38bf..58061d4 100644 --- a/tests/test_play_animation.h +++ b/tests/test_play_animation.h @@ -27,7 +27,7 @@ namespace TestPlayAnimation { TEST_CASE("[SceneTree][LimboAI] BTPlayAnimation") { AnimationPlayer *player = memnew(AnimationPlayer); SceneTree::get_singleton()->get_root()->add_child(player); - player->set_process_callback(AnimationPlayer::AnimationProcessCallback::ANIMATION_PROCESS_IDLE); + player->set_callback_mode_process(AnimationMixer::ANIMATION_CALLBACK_MODE_PROCESS_IDLE); Ref anim_lib = memnew(AnimationLibrary); Ref anim = memnew(Animation); diff --git a/tests/test_stop_animation.h b/tests/test_stop_animation.h index 6778032..ad88477 100644 --- a/tests/test_stop_animation.h +++ b/tests/test_stop_animation.h @@ -27,7 +27,7 @@ namespace TestStopAnimation { TEST_CASE("[SceneTree][LimboAI] BTStopAnimation") { AnimationPlayer *player = memnew(AnimationPlayer); SceneTree::get_singleton()->get_root()->add_child(player); - player->set_process_callback(AnimationPlayer::AnimationProcessCallback::ANIMATION_PROCESS_IDLE); + player->set_callback_mode_process(AnimationMixer::ANIMATION_CALLBACK_MODE_PROCESS_IDLE); Ref anim_lib = memnew(AnimationLibrary); Ref anim = memnew(Animation);