Initial graph evaluations, added Float to Vec3 Node, minor editor tweaks.
This commit is contained in:
@@ -123,6 +123,23 @@ struct AnimGraphResource {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool isSocketConnected(
|
||||
const AnimNodeResource& node,
|
||||
const std::string& socket_name) {
|
||||
int node_index = getNodeIndex(node);
|
||||
for (size_t i = 0, n = m_connections.size(); i < n; i++) {
|
||||
const AnimGraphConnectionResource& connection = m_connections[i];
|
||||
if ((connection.source_node_index == node_index
|
||||
&& connection.source_socket_name == socket_name)
|
||||
|| ((connection.target_node_index == node_index)
|
||||
&& connection.target_socket_name == socket_name)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
AnimGraph createInstance() const;
|
||||
void createRuntimeNodeInstances(AnimGraph& instance) const;
|
||||
void prepareGraphIOData(AnimGraph& instance) const;
|
||||
|
||||
Reference in New Issue
Block a user