Fixed referenced filenames in AnimGraphResourceTests.

RefactorUnifiedBlendTreeStateMachineHandling
Martin Felis 2023-04-21 12:39:09 +02:00
parent 8dfc8dd05c
commit 8c68737f62
1 changed files with 9 additions and 9 deletions

View File

@ -45,7 +45,7 @@ TEST_CASE("AnimSamplerGraph", "[AnimGraphResource]") {
walk_node.m_name = "WalkAnim"; walk_node.m_name = "WalkAnim";
walk_node.m_socket_accessor->SetPropertyValue( walk_node.m_socket_accessor->SetPropertyValue(
"Filename", "Filename",
std::string("data/walk.anim.ozz")); std::string("media/Walking-loop.ozz"));
AnimNodeResource& graph_node = graph_resource.m_nodes[0]; AnimNodeResource& graph_node = graph_resource.m_nodes[0];
graph_node.m_socket_accessor->RegisterInput<AnimData>("GraphOutput", nullptr); graph_node.m_socket_accessor->RegisterInput<AnimData>("GraphOutput", nullptr);
@ -65,7 +65,7 @@ TEST_CASE("AnimSamplerGraph", "[AnimGraphResource]") {
AnimGraphContext graph_context; AnimGraphContext graph_context;
ozz::animation::Skeleton skeleton; ozz::animation::Skeleton skeleton;
REQUIRE(load_skeleton(skeleton, "data/skeleton.ozz")); REQUIRE(load_skeleton(skeleton, "media/skeleton.ozz"));
graph_context.m_skeleton = &skeleton; graph_context.m_skeleton = &skeleton;
REQUIRE(graph.init(graph_context)); REQUIRE(graph.init(graph_context));
@ -91,7 +91,7 @@ TEST_CASE("AnimSamplerGraph", "[AnimGraphResource]") {
== graph_output_node); == graph_output_node);
// Ensure animation sampler nodes use the correct files // Ensure animation sampler nodes use the correct files
REQUIRE(anim_sampler_walk->m_filename == "data/walk.anim.ozz"); REQUIRE(anim_sampler_walk->m_filename == "media/Walking-loop.ozz");
REQUIRE(anim_sampler_walk->m_animation != nullptr); REQUIRE(anim_sampler_walk->m_animation != nullptr);
// Ensure that outputs are properly propagated. // Ensure that outputs are properly propagated.
@ -128,7 +128,7 @@ TEST_CASE("AnimSamplerSpeedScaleGraph", "[AnimGraphResource]") {
walk_node.m_name = "WalkAnim"; walk_node.m_name = "WalkAnim";
walk_node.m_socket_accessor->SetPropertyValue( walk_node.m_socket_accessor->SetPropertyValue(
"Filename", "Filename",
std::string("data/walk.anim.ozz")); std::string("media/Walking-loop.ozz"));
AnimNodeResource& speed_scale_node = AnimNodeResource& speed_scale_node =
graph_resource.m_nodes[speed_scale_node_index]; graph_resource.m_nodes[speed_scale_node_index];
@ -189,11 +189,11 @@ TEST_CASE("Blend2Graph", "[AnimGraphResource]") {
walk_node.m_name = "WalkAnim"; walk_node.m_name = "WalkAnim";
walk_node.m_socket_accessor->SetPropertyValue( walk_node.m_socket_accessor->SetPropertyValue(
"Filename", "Filename",
std::string("data/walk.anim.ozz")); std::string("media/Walking-loop.ozz"));
AnimNodeResource& run_node = graph_resource.m_nodes[run_node_index]; AnimNodeResource& run_node = graph_resource.m_nodes[run_node_index];
run_node.m_socket_accessor->SetPropertyValue( run_node.m_socket_accessor->SetPropertyValue(
"Filename", "Filename",
std::string("data/run.anim.ozz")); std::string("media/Running0-loop.ozz"));
run_node.m_name = "RunAnim"; run_node.m_name = "RunAnim";
AnimNodeResource& blend_node = graph_resource.m_nodes[blend_node_index]; AnimNodeResource& blend_node = graph_resource.m_nodes[blend_node_index];
blend_node.m_name = "BlendWalkRun"; blend_node.m_name = "BlendWalkRun";
@ -222,7 +222,7 @@ TEST_CASE("Blend2Graph", "[AnimGraphResource]") {
AnimGraphContext graph_context; AnimGraphContext graph_context;
ozz::animation::Skeleton skeleton; ozz::animation::Skeleton skeleton;
REQUIRE(load_skeleton(skeleton, "data/skeleton.ozz")); REQUIRE(load_skeleton(skeleton, "media/skeleton.ozz"));
graph_context.m_skeleton = &skeleton; graph_context.m_skeleton = &skeleton;
REQUIRE(graph.init(graph_context)); REQUIRE(graph.init(graph_context));
@ -265,10 +265,10 @@ TEST_CASE("Blend2Graph", "[AnimGraphResource]") {
== blend2_instance); == blend2_instance);
// Ensure animation sampler nodes use the correct files // Ensure animation sampler nodes use the correct files
REQUIRE(anim_sampler_walk->m_filename == "data/walk.anim.ozz"); REQUIRE(anim_sampler_walk->m_filename == "media/Walking-loop.ozz");
REQUIRE(anim_sampler_walk->m_animation != nullptr); REQUIRE(anim_sampler_walk->m_animation != nullptr);
REQUIRE(anim_sampler_run->m_filename == "data/run.anim.ozz"); REQUIRE(anim_sampler_run->m_filename == "media/Running0-loop.ozz");
REQUIRE(anim_sampler_run->m_animation != nullptr); REQUIRE(anim_sampler_run->m_animation != nullptr);
WHEN("Emulating Graph Evaluation") { WHEN("Emulating Graph Evaluation") {