Fixed referenced filenames in AnimGraphResourceTests.
parent
8dfc8dd05c
commit
8c68737f62
|
@ -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<AnimData>("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") {
|
||||
|
|
Loading…
Reference in New Issue