Skip to content

Commit

Permalink
GH-667 Relax operator node connection requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
Naros committed Aug 4, 2024
1 parent 3c0d2e4 commit 25c6c37
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/script/nodes/math/operator_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,10 @@ void OScriptNodeOperator::validate_node_during_build(BuildLog& p_log) const
Ref<OScriptNodePin> result = find_pin("result", PD_Output);
if (!result.is_valid())
p_log.error(this, "No result pin found, right-click node and select 'Refresh Nodes'.");
else if (!result->has_any_connections())
p_log.error(this, result, "Requires a connection.");
// GH-667 Relaxed temporarily until we can introduce graph traversal to determine if the
// node actually will be discarded at runtime.
// else if (!result->has_any_connections())
// p_log.error(this, result, "Requires a connection.");

super::validate_node_during_build(p_log);
}
Expand Down

0 comments on commit 25c6c37

Please sign in to comment.