Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/drawnode.c
| Show First 20 Lines • Show All 1,623 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| uiLayout *col; | uiLayout *col; | ||||
| col = uiLayoutColumn(layout, true); | col = uiLayoutColumn(layout, true); | ||||
| uiItemR(col, ptr, "use_alpha", 0, NULL, ICON_NONE); | uiItemR(col, ptr, "use_alpha", 0, NULL, ICON_NONE); | ||||
| uiItemR(col, ptr, "use_antialias_z", 0, NULL, ICON_NONE); | uiItemR(col, ptr, "use_antialias_z", 0, NULL, ICON_NONE); | ||||
| } | } | ||||
| static void node_composit_buts_hue_sat(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | |||||
| { | |||||
| uiLayout *col; | |||||
| col = uiLayoutColumn(layout, false); | |||||
| uiItemR(col, ptr, "color_hue", UI_ITEM_R_SLIDER, NULL, ICON_NONE); | |||||
| uiItemR(col, ptr, "color_saturation", UI_ITEM_R_SLIDER, NULL, ICON_NONE); | |||||
| uiItemR(col, ptr, "color_value", UI_ITEM_R_SLIDER, NULL, ICON_NONE); | |||||
| } | |||||
| static void node_composit_buts_dilateerode(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | static void node_composit_buts_dilateerode(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | ||||
| { | { | ||||
| uiItemR(layout, ptr, "mode", 0, NULL, ICON_NONE); | uiItemR(layout, ptr, "mode", 0, NULL, ICON_NONE); | ||||
| uiItemR(layout, ptr, "distance", 0, NULL, ICON_NONE); | uiItemR(layout, ptr, "distance", 0, NULL, ICON_NONE); | ||||
| switch (RNA_enum_get(ptr, "mode")) { | switch (RNA_enum_get(ptr, "mode")) { | ||||
| case CMP_NODE_DILATEERODE_DISTANCE_THRESH: | case CMP_NODE_DILATEERODE_DISTANCE_THRESH: | ||||
| uiItemR(layout, ptr, "edge", 0, NULL, ICON_NONE); | uiItemR(layout, ptr, "edge", 0, NULL, ICON_NONE); | ||||
| break; | break; | ||||
| ▲ Show 20 Lines • Show All 924 Lines • ▼ Show 20 Lines | case CMP_NODE_MAP_RANGE: | ||||
| ntype->draw_buttons = node_composit_buts_map_range; | ntype->draw_buttons = node_composit_buts_map_range; | ||||
| break; | break; | ||||
| case CMP_NODE_TIME: | case CMP_NODE_TIME: | ||||
| ntype->draw_buttons = node_buts_time; | ntype->draw_buttons = node_buts_time; | ||||
| break; | break; | ||||
| case CMP_NODE_ALPHAOVER: | case CMP_NODE_ALPHAOVER: | ||||
| ntype->draw_buttons = node_composit_buts_alphaover; | ntype->draw_buttons = node_composit_buts_alphaover; | ||||
| break; | break; | ||||
| case CMP_NODE_HUE_SAT: | |||||
| ntype->draw_buttons = node_composit_buts_hue_sat; | |||||
| break; | |||||
| case CMP_NODE_TEXTURE: | case CMP_NODE_TEXTURE: | ||||
| ntype->draw_buttons = node_buts_texture; | ntype->draw_buttons = node_buts_texture; | ||||
| break; | break; | ||||
| case CMP_NODE_DILATEERODE: | case CMP_NODE_DILATEERODE: | ||||
| ntype->draw_buttons = node_composit_buts_dilateerode; | ntype->draw_buttons = node_composit_buts_dilateerode; | ||||
| break; | break; | ||||
| case CMP_NODE_INPAINT: | case CMP_NODE_INPAINT: | ||||
| ntype->draw_buttons = node_composit_buts_inpaint; | ntype->draw_buttons = node_composit_buts_inpaint; | ||||
| ▲ Show 20 Lines • Show All 1,090 Lines • Show Last 20 Lines | |||||