Removed even more unused files.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
#pragma clang diagnostic push
|
||||
#pragma ide diagnostic ignored "misc-no-recursion"
|
||||
//
|
||||
// Created by martin on 17.03.24.
|
||||
//
|
||||
@@ -5,7 +7,6 @@
|
||||
#include "AnimGraphBlendTree.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstring>
|
||||
|
||||
bool AnimGraphBlendTree::Init(AnimGraphContext& context) {
|
||||
for (size_t i = 2; i < m_nodes.size(); i++) {
|
||||
@@ -64,9 +65,9 @@ void AnimGraphBlendTree::UpdateOrderedNodesRecursive(int node_index) {
|
||||
|
||||
void AnimGraphBlendTree::MarkActiveInputs(
|
||||
const std::vector<AnimGraphConnection>& input_connections) {
|
||||
for (size_t i = 0, n = m_nodes.size(); i < n; i++) {
|
||||
if (m_nodes[i]->m_tick_number != m_tick_number) {
|
||||
m_nodes[i]->m_state = AnimNodeEvalState::Deactivated;
|
||||
for (AnimNode* node : m_nodes) {
|
||||
if (node->m_tick_number != m_tick_number) {
|
||||
node->m_state = AnimNodeEvalState::Deactivated;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -104,7 +105,7 @@ void AnimGraphBlendTree::MarkActiveInputs(
|
||||
|
||||
void AnimGraphBlendTree::CalcSyncTrack(
|
||||
const std::vector<AnimGraphConnection>& input_connections) {
|
||||
for (size_t i = m_eval_ordered_nodes.size() - 1; i >= 0; i--) {
|
||||
for (int i = m_eval_ordered_nodes.size() - 1; i >= 0; i--) {
|
||||
AnimNode* node = m_eval_ordered_nodes[i];
|
||||
if (node->m_state == AnimNodeEvalState::Deactivated) {
|
||||
continue;
|
||||
@@ -119,8 +120,8 @@ void AnimGraphBlendTree::UpdateTime(float time_last, float time_now) {
|
||||
|
||||
const std::vector<AnimGraphConnection>& graph_output_inputs =
|
||||
m_node_input_connections[0];
|
||||
for (size_t i = 0, n = graph_output_inputs.size(); i < n; i++) {
|
||||
AnimNode* node = graph_output_inputs[i].m_source_node;
|
||||
for (const AnimGraphConnection& graph_output_input : graph_output_inputs) {
|
||||
AnimNode* node = graph_output_input.m_source_node;
|
||||
if (node != nullptr && node->m_state != AnimNodeEvalState::TimeUpdated) {
|
||||
node->UpdateTime(time_last, time_now);
|
||||
}
|
||||
@@ -158,15 +159,18 @@ void AnimGraphBlendTree::PropagateTimeToNodeInputs(const AnimNode* node) {
|
||||
|
||||
const std::vector<AnimGraphConnection>& node_input_connections =
|
||||
m_node_input_connections[node_index];
|
||||
for (size_t i = 0, n = node_input_connections.size(); i < n; i++) {
|
||||
AnimNode* input_node = node_input_connections[i].m_source_node;
|
||||
for (const AnimGraphConnection& node_input_connection :
|
||||
node_input_connections) {
|
||||
AnimNode* input_node = node_input_connection.m_source_node;
|
||||
|
||||
// Only propagate time updates via animation sockets.
|
||||
if (input_node != nullptr
|
||||
&& node_input_connections[i].m_socket.m_type
|
||||
&& node_input_connection.m_socket.m_type
|
||||
== SocketType::SocketTypeAnimation
|
||||
&& input_node->m_state == AnimNodeEvalState::Activated) {
|
||||
input_node->UpdateTime(node_time_last, node_time_now);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#pragma clang diagnostic pop
|
||||
Reference in New Issue
Block a user