Fix T103001: Width of some compositor nodes is incorrect

Nodes which are common in multiple editors (RGB, Value, Switch, RGB to BW)
has less width in compositor editor. Patch changes compositor node width to
140 for consistency.

Reviewed by: HooglyBoogly

Differential Revision: https://developer.blender.org/D16719
This commit is contained in:
Pratik Borhade 2022-12-09 16:51:34 +05:30
parent a55c356a1c
commit 7c5b7713f1
Notes: blender-bot 2023-02-14 03:46:57 +01:00
Referenced by issue #103001, Width of some compositor nodes is incorrect
4 changed files with 4 additions and 4 deletions

View File

@ -55,7 +55,7 @@ void register_node_type_cmp_rgb()
cmp_node_type_base(&ntype, CMP_NODE_RGB, "RGB", NODE_CLASS_INPUT);
ntype.declare = file_ns::cmp_node_rgb_declare;
node_type_size_preset(&ntype, NODE_SIZE_SMALL);
node_type_size_preset(&ntype, NODE_SIZE_DEFAULT);
ntype.get_compositor_operation = file_ns::get_compositor_operation;
nodeRegisterType(&ntype);

View File

@ -63,7 +63,7 @@ void register_node_type_cmp_switch()
cmp_node_type_base(&ntype, CMP_NODE_SWITCH, "Switch", NODE_CLASS_LAYOUT);
ntype.declare = file_ns::cmp_node_switch_declare;
ntype.draw_buttons = file_ns::node_composit_buts_switch;
node_type_size_preset(&ntype, NODE_SIZE_SMALL);
node_type_size_preset(&ntype, NODE_SIZE_DEFAULT);
ntype.get_compositor_operation = file_ns::get_compositor_operation;
nodeRegisterType(&ntype);

View File

@ -191,7 +191,7 @@ void register_node_type_cmp_rgbtobw()
cmp_node_type_base(&ntype, CMP_NODE_RGBTOBW, "RGB to BW", NODE_CLASS_CONVERTER);
ntype.declare = file_ns::cmp_node_rgbtobw_declare;
node_type_size_preset(&ntype, NODE_SIZE_SMALL);
node_type_size_preset(&ntype, NODE_SIZE_DEFAULT);
ntype.get_compositor_shader_node = file_ns::get_compositor_shader_node;
nodeRegisterType(&ntype);

View File

@ -51,7 +51,7 @@ void register_node_type_cmp_value()
cmp_node_type_base(&ntype, CMP_NODE_VALUE, "Value", NODE_CLASS_INPUT);
ntype.declare = file_ns::cmp_node_value_declare;
node_type_size_preset(&ntype, NODE_SIZE_SMALL);
node_type_size_preset(&ntype, NODE_SIZE_DEFAULT);
ntype.get_compositor_operation = file_ns::get_compositor_operation;
nodeRegisterType(&ntype);