Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/drawnode.c
| Show First 20 Lines • Show All 251 Lines • ▼ Show 20 Lines | |||||
| static void node_buts_map_range(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | static void node_buts_map_range(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | ||||
| { | { | ||||
| uiItemR(layout, ptr, "clamp", 0, NULL, ICON_NONE); | 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); | |||||
| } | } | ||||
| static int node_resize_area_default(bNode *node, int x, int y) | static int node_resize_area_default(bNode *node, int x, int y) | ||||
| { | { | ||||
| if (node->flag & NODE_HIDDEN) { | if (node->flag & NODE_HIDDEN) { | ||||
| rctf totr = node->totr; | rctf totr = node->totr; | ||||
| /* right part of node */ | /* right part of node */ | ||||
| totr.xmin = node->totr.xmax - 20.0f; | totr.xmin = node->totr.xmax - 20.0f; | ||||
| ▲ Show 20 Lines • Show All 3,747 Lines • Show Last 20 Lines | |||||