Fix setting animation callback mode process
This commit is contained in:
parent
f9f930133f
commit
04537d1e96
|
@ -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<AnimationLibrary> anim_lib = memnew(AnimationLibrary);
|
||||
Ref<Animation> anim = memnew(Animation);
|
||||
|
|
|
@ -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<AnimationLibrary> anim_lib = memnew(AnimationLibrary);
|
||||
Ref<Animation> anim = memnew(Animation);
|
||||
|
|
|
@ -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<AnimationLibrary> anim_lib = memnew(AnimationLibrary);
|
||||
Ref<Animation> anim = memnew(Animation);
|
||||
|
|
|
@ -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<AnimationLibrary> anim_lib = memnew(AnimationLibrary);
|
||||
Ref<Animation> anim = memnew(Animation);
|
||||
|
|
Loading…
Reference in New Issue