Fix setting animation callback mode process

This commit is contained in:
Serhii Snitsaruk 2023-10-28 13:10:33 +02:00
parent f9f930133f
commit 04537d1e96
4 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@ namespace TestAwaitAnimation {
TEST_CASE("[SceneTree][LimboAI] BTAwaitAnimation") { TEST_CASE("[SceneTree][LimboAI] BTAwaitAnimation") {
AnimationPlayer *player = memnew(AnimationPlayer); AnimationPlayer *player = memnew(AnimationPlayer);
SceneTree::get_singleton()->get_root()->add_child(player); 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<AnimationLibrary> anim_lib = memnew(AnimationLibrary); Ref<AnimationLibrary> anim_lib = memnew(AnimationLibrary);
Ref<Animation> anim = memnew(Animation); Ref<Animation> anim = memnew(Animation);

View File

@ -27,7 +27,7 @@ namespace TestPauseAnimation {
TEST_CASE("[SceneTree][LimboAI] BTPauseAnimation") { TEST_CASE("[SceneTree][LimboAI] BTPauseAnimation") {
AnimationPlayer *player = memnew(AnimationPlayer); AnimationPlayer *player = memnew(AnimationPlayer);
SceneTree::get_singleton()->get_root()->add_child(player); 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<AnimationLibrary> anim_lib = memnew(AnimationLibrary); Ref<AnimationLibrary> anim_lib = memnew(AnimationLibrary);
Ref<Animation> anim = memnew(Animation); Ref<Animation> anim = memnew(Animation);

View File

@ -27,7 +27,7 @@ namespace TestPlayAnimation {
TEST_CASE("[SceneTree][LimboAI] BTPlayAnimation") { TEST_CASE("[SceneTree][LimboAI] BTPlayAnimation") {
AnimationPlayer *player = memnew(AnimationPlayer); AnimationPlayer *player = memnew(AnimationPlayer);
SceneTree::get_singleton()->get_root()->add_child(player); 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<AnimationLibrary> anim_lib = memnew(AnimationLibrary); Ref<AnimationLibrary> anim_lib = memnew(AnimationLibrary);
Ref<Animation> anim = memnew(Animation); Ref<Animation> anim = memnew(Animation);

View File

@ -27,7 +27,7 @@ namespace TestStopAnimation {
TEST_CASE("[SceneTree][LimboAI] BTStopAnimation") { TEST_CASE("[SceneTree][LimboAI] BTStopAnimation") {
AnimationPlayer *player = memnew(AnimationPlayer); AnimationPlayer *player = memnew(AnimationPlayer);
SceneTree::get_singleton()->get_root()->add_child(player); 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<AnimationLibrary> anim_lib = memnew(AnimationLibrary); Ref<AnimationLibrary> anim_lib = memnew(AnimationLibrary);
Ref<Animation> anim = memnew(Animation); Ref<Animation> anim = memnew(Animation);