From 8c68737f6282a2e378c005488c05f456432b407f Mon Sep 17 00:00:00 2001 From: Martin Felis Date: Fri, 21 Apr 2023 12:39:09 +0200 Subject: [PATCH] Fixed referenced filenames in AnimGraphResourceTests. --- tests/AnimGraphResourceTests.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/AnimGraphResourceTests.cc b/tests/AnimGraphResourceTests.cc index 0927497..69014a8 100644 --- a/tests/AnimGraphResourceTests.cc +++ b/tests/AnimGraphResourceTests.cc @@ -45,7 +45,7 @@ TEST_CASE("AnimSamplerGraph", "[AnimGraphResource]") { walk_node.m_name = "WalkAnim"; walk_node.m_socket_accessor->SetPropertyValue( "Filename", - std::string("data/walk.anim.ozz")); + std::string("media/Walking-loop.ozz")); AnimNodeResource& graph_node = graph_resource.m_nodes[0]; graph_node.m_socket_accessor->RegisterInput("GraphOutput", nullptr); @@ -65,7 +65,7 @@ TEST_CASE("AnimSamplerGraph", "[AnimGraphResource]") { AnimGraphContext graph_context; ozz::animation::Skeleton skeleton; - REQUIRE(load_skeleton(skeleton, "data/skeleton.ozz")); + REQUIRE(load_skeleton(skeleton, "media/skeleton.ozz")); graph_context.m_skeleton = &skeleton; REQUIRE(graph.init(graph_context)); @@ -91,7 +91,7 @@ TEST_CASE("AnimSamplerGraph", "[AnimGraphResource]") { == graph_output_node); // 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); // Ensure that outputs are properly propagated. @@ -128,7 +128,7 @@ TEST_CASE("AnimSamplerSpeedScaleGraph", "[AnimGraphResource]") { walk_node.m_name = "WalkAnim"; walk_node.m_socket_accessor->SetPropertyValue( "Filename", - std::string("data/walk.anim.ozz")); + std::string("media/Walking-loop.ozz")); AnimNodeResource& speed_scale_node = graph_resource.m_nodes[speed_scale_node_index]; @@ -189,11 +189,11 @@ TEST_CASE("Blend2Graph", "[AnimGraphResource]") { walk_node.m_name = "WalkAnim"; walk_node.m_socket_accessor->SetPropertyValue( "Filename", - std::string("data/walk.anim.ozz")); + std::string("media/Walking-loop.ozz")); AnimNodeResource& run_node = graph_resource.m_nodes[run_node_index]; run_node.m_socket_accessor->SetPropertyValue( "Filename", - std::string("data/run.anim.ozz")); + std::string("media/Running0-loop.ozz")); run_node.m_name = "RunAnim"; AnimNodeResource& blend_node = graph_resource.m_nodes[blend_node_index]; blend_node.m_name = "BlendWalkRun"; @@ -222,7 +222,7 @@ TEST_CASE("Blend2Graph", "[AnimGraphResource]") { AnimGraphContext graph_context; ozz::animation::Skeleton skeleton; - REQUIRE(load_skeleton(skeleton, "data/skeleton.ozz")); + REQUIRE(load_skeleton(skeleton, "media/skeleton.ozz")); graph_context.m_skeleton = &skeleton; REQUIRE(graph.init(graph_context)); @@ -265,10 +265,10 @@ TEST_CASE("Blend2Graph", "[AnimGraphResource]") { == blend2_instance); // 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_run->m_filename == "data/run.anim.ozz"); + REQUIRE(anim_sampler_run->m_filename == "media/Running0-loop.ozz"); REQUIRE(anim_sampler_run->m_animation != nullptr); WHEN("Emulating Graph Evaluation") {