Further cleanup and added comments.

This commit is contained in:
Martin Felis
2025-03-19 21:12:27 +01:00
parent 283306f225
commit f52b19a8d2
3 changed files with 24 additions and 6 deletions
+9
View File
@@ -209,11 +209,20 @@ TEST_CASE_METHOD(
// Get runtime graph inputs and outputs
float graph_float_input = 0.f;
blend_tree.SetInput("GraphFloatInput", &graph_float_input);
CHECK(blend_tree.GetGraphInputs().size() == 1);
CHECK(
*blend_tree.GetGraphInputs()[0].m_reference.ptr_ptr
== &graph_float_input);
AnimData graph_anim_output;
graph_anim_output.m_local_matrices.resize(skeleton->num_joints());
blend_tree.SetOutput("Output", &graph_anim_output);
CHECK(blend_tree.GetGraphOutputs().size() == 1);
CHECK(
*blend_tree.GetGraphOutputs()[0].m_reference.ptr_ptr
== &graph_anim_output);
WHEN("Blend Weight == 0.") {
// Evaluate graph
graph_float_input = 0.f;