Refactored graph evaluations.

AnimGraphEditor
Martin Felis 2022-04-18 20:02:16 +02:00
parent 5e7a48b2eb
commit 68331467f0
2 changed files with 4 additions and 3 deletions

View File

@ -488,7 +488,10 @@ void AnimGraphResource::connectRuntimeNodes(AnimGraph& instance) const {
//
// Wire up outputs to inputs.
//
if (target_socket->m_type != SocketType::SocketTypeAnimation) {
// Skip animation connections and connections to the output node as the
// pointers are already set up in AnimGraphResource::prepareGraphIOData().
if (target_socket->m_type != SocketType::SocketTypeAnimation
&& connection.target_node_index != 0) {
(*target_socket->m_reference.ptr_ptr) = source_socket->m_reference.ptr;
}

View File

@ -121,8 +121,6 @@ TEST_CASE_METHOD(
}
TEST_CASE("AnimDataPlacementNew", "[AnimGraphEval]") {
std::cout << "blamp" << std::endl;
int anim_data_size = sizeof(AnimData);
char* buf = new char[anim_data_size];