Nodes: Change Compositing Switch node class from Layout to Converter
Currently, the Layout node class is used by the Reroute, Frame and Compositing Switch node. To bring more uniformity, and clear up the use of each class, this commit moves the Compositing Switch node from the Layout class to the Converter class. This aligns it with similar nodes (Compositing Split, Compositing Switch View, Geometry Switch) which use the same class, and limits the Layout class to layout-related nodes. On the UI side, this also gives the Compositing Switch node a more relevant header color. Pull Request: https://projects.blender.org/blender/blender/pulls/131392
This commit is contained in:
committed by
Jacques Lucke
parent
3bd79aaa78
commit
a730d5f8ba
@@ -61,7 +61,7 @@ void register_node_type_cmp_switch()
|
||||
|
||||
static blender::bke::bNodeType ntype;
|
||||
|
||||
cmp_node_type_base(&ntype, CMP_NODE_SWITCH, "Switch", NODE_CLASS_LAYOUT);
|
||||
cmp_node_type_base(&ntype, CMP_NODE_SWITCH, "Switch", NODE_CLASS_CONVERTER);
|
||||
ntype.declare = file_ns::cmp_node_switch_declare;
|
||||
ntype.draw_buttons = file_ns::node_composit_buts_switch;
|
||||
blender::bke::node_type_size_preset(&ntype, blender::bke::eNodeSizePreset::Default);
|
||||
|
||||
Reference in New Issue
Block a user