Fix #125988: File output node not using output node color
`NODE_DO_OUTPUT` flag for file output node is unset which prevents the node from having the `TH_NODE_OUTPUT` id. Now fixed with node type comparison. Pull Request: #126081
This commit is contained in:
parent
6c7ef54211
commit
05f2e6f5c2
@ -1094,7 +1094,9 @@ static int node_get_colorid(TreeDrawContext &tree_draw_ctx, const bNode &node)
|
||||
if (node.type == GEO_NODE_VIEWER) {
|
||||
return &node == tree_draw_ctx.active_geometry_nodes_viewer ? TH_NODE_OUTPUT : TH_NODE;
|
||||
}
|
||||
return (node.flag & NODE_DO_OUTPUT) ? TH_NODE_OUTPUT : TH_NODE;
|
||||
const bool is_output_node = (node.flag & NODE_DO_OUTPUT) ||
|
||||
(node.type == CMP_NODE_OUTPUT_FILE);
|
||||
return is_output_node ? TH_NODE_OUTPUT : TH_NODE;
|
||||
}
|
||||
case NODE_CLASS_CONVERTER:
|
||||
return TH_NODE_CONVERTER;
|
||||
|
Loading…
x
Reference in New Issue
Block a user