Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/drawnode.c
| Show First 20 Lines • Show All 1,966 Lines • ▼ Show 20 Lines | static void node_composit_buts_invert(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | ||||
| uiItemR(col, ptr, "invert_alpha", 0, NULL, ICON_NONE); | uiItemR(col, ptr, "invert_alpha", 0, NULL, ICON_NONE); | ||||
| } | } | ||||
| static void node_composit_buts_premulkey(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | static void node_composit_buts_premulkey(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | ||||
| { | { | ||||
| uiItemR(layout, ptr, "mapping", 0, "", ICON_NONE); | uiItemR(layout, ptr, "mapping", 0, "", ICON_NONE); | ||||
| } | } | ||||
| static void node_composit_buts_distance_transform(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | |||||
| { | |||||
| uiLayout *col; | |||||
| col = uiLayoutColumn(layout, false); | |||||
| uiItemR(col, ptr, "invert", 0, NULL, ICON_NONE); | |||||
| uiItemR(col, ptr, "relative", 0, NULL, ICON_NONE); | |||||
| uiItemR(col, ptr, "threshold", 0, NULL, ICON_NONE); | |||||
| } | |||||
| static void node_composit_buts_view_levels(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | static void node_composit_buts_view_levels(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | ||||
| { | { | ||||
| uiItemR(layout, ptr, "channel", UI_ITEM_R_EXPAND, NULL, ICON_NONE); | uiItemR(layout, ptr, "channel", UI_ITEM_R_EXPAND, NULL, ICON_NONE); | ||||
| } | } | ||||
| static void node_composit_buts_colorbalance(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | static void node_composit_buts_colorbalance(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | ||||
| { | { | ||||
| uiLayout *split, *col, *row; | uiLayout *split, *col, *row; | ||||
| ▲ Show 20 Lines • Show All 728 Lines • ▼ Show 20 Lines | case CMP_NODE_MATH: | ||||
| ntype->draw_buttons = node_buts_math; | ntype->draw_buttons = node_buts_math; | ||||
| break; | break; | ||||
| case CMP_NODE_INVERT: | case CMP_NODE_INVERT: | ||||
| ntype->draw_buttons = node_composit_buts_invert; | ntype->draw_buttons = node_composit_buts_invert; | ||||
| break; | break; | ||||
| case CMP_NODE_PREMULKEY: | case CMP_NODE_PREMULKEY: | ||||
| ntype->draw_buttons = node_composit_buts_premulkey; | ntype->draw_buttons = node_composit_buts_premulkey; | ||||
| break; | break; | ||||
| case CMP_NODE_DISTANCE_TRANSFORM: | |||||
| ntype->draw_buttons = node_composit_buts_distance_transform; | |||||
| break; | |||||
| case CMP_NODE_VIEW_LEVELS: | case CMP_NODE_VIEW_LEVELS: | ||||
| ntype->draw_buttons = node_composit_buts_view_levels; | ntype->draw_buttons = node_composit_buts_view_levels; | ||||
| break; | break; | ||||
| case CMP_NODE_COLORBALANCE: | case CMP_NODE_COLORBALANCE: | ||||
| ntype->draw_buttons = node_composit_buts_colorbalance; | ntype->draw_buttons = node_composit_buts_colorbalance; | ||||
| ntype->draw_buttons_ex = node_composit_buts_colorbalance_ex; | ntype->draw_buttons_ex = node_composit_buts_colorbalance_ex; | ||||
| break; | break; | ||||
| case CMP_NODE_HUECORRECT: | case CMP_NODE_HUECORRECT: | ||||
| ▲ Show 20 Lines • Show All 1,018 Lines • Show Last 20 Lines | |||||