Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/drawnode.c
| Show First 20 Lines • Show All 243 Lines • ▼ Show 20 Lines | static void node_buts_texture(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | ||||
| uiItemR(layout, ptr, "texture", 0, "", ICON_NONE); | uiItemR(layout, ptr, "texture", 0, "", ICON_NONE); | ||||
| if (multi) { | if (multi) { | ||||
| /* Number Drawing not optimal here, better have a list*/ | /* Number Drawing not optimal here, better have a list*/ | ||||
| uiItemR(layout, ptr, "node_output", 0, "", ICON_NONE); | uiItemR(layout, ptr, "node_output", 0, "", ICON_NONE); | ||||
| } | } | ||||
| } | } | ||||
| static void node_buts_map_range(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | |||||
| { | |||||
| uiItemR(layout, ptr, "clamp", 0, NULL, ICON_NONE); | |||||
| } | |||||
| static void node_buts_math(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | static void node_buts_math(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | ||||
| { | { | ||||
| uiItemR(layout, ptr, "operation", 0, "", ICON_NONE); | uiItemR(layout, ptr, "operation", 0, "", ICON_NONE); | ||||
| uiItemR(layout, ptr, "use_clamp", 0, NULL, ICON_NONE); | uiItemR(layout, ptr, "use_clamp", 0, NULL, ICON_NONE); | ||||
| } | } | ||||
| static int node_resize_area_default(bNode *node, int x, int y) | static int node_resize_area_default(bNode *node, int x, int y) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 944 Lines • ▼ Show 20 Lines | case SH_NODE_RGB: | ||||
| ntype->draw_buttons = node_buts_rgb; | ntype->draw_buttons = node_buts_rgb; | ||||
| break; | break; | ||||
| case SH_NODE_MIX_RGB: | case SH_NODE_MIX_RGB: | ||||
| ntype->draw_buttons = node_buts_mix_rgb; | ntype->draw_buttons = node_buts_mix_rgb; | ||||
| break; | break; | ||||
| case SH_NODE_VALTORGB: | case SH_NODE_VALTORGB: | ||||
| ntype->draw_buttons = node_buts_colorramp; | ntype->draw_buttons = node_buts_colorramp; | ||||
| break; | break; | ||||
| case SH_NODE_MAP_RANGE: | |||||
| ntype->draw_buttons = node_buts_map_range; | |||||
| break; | |||||
| case SH_NODE_MATH: | case SH_NODE_MATH: | ||||
| ntype->draw_buttons = node_buts_math; | ntype->draw_buttons = node_buts_math; | ||||
| break; | break; | ||||
| case SH_NODE_VECT_MATH: | case SH_NODE_VECT_MATH: | ||||
| ntype->draw_buttons = node_shader_buts_vect_math; | ntype->draw_buttons = node_shader_buts_vect_math; | ||||
| break; | break; | ||||
| case SH_NODE_VECT_TRANSFORM: | case SH_NODE_VECT_TRANSFORM: | ||||
| ntype->draw_buttons = node_shader_buts_vect_transform; | ntype->draw_buttons = node_shader_buts_vect_transform; | ||||
| ▲ Show 20 Lines • Show All 2,788 Lines • Show Last 20 Lines | |||||