Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/drawnode.c
| Show First 20 Lines • Show All 1,522 Lines • ▼ Show 20 Lines | static void node_composit_buts_defocus(uiLayout *layout, bContext *C, PointerRNA *ptr) | ||||
| col = uiLayoutColumn(layout, false); | col = uiLayoutColumn(layout, false); | ||||
| uiItemR(col, ptr, "use_zbuffer", DEFAULT_FLAGS, NULL, ICON_NONE); | uiItemR(col, ptr, "use_zbuffer", DEFAULT_FLAGS, NULL, ICON_NONE); | ||||
| sub = uiLayoutColumn(col, false); | sub = uiLayoutColumn(col, false); | ||||
| uiLayoutSetActive(sub, RNA_boolean_get(ptr, "use_zbuffer") == false); | uiLayoutSetActive(sub, RNA_boolean_get(ptr, "use_zbuffer") == false); | ||||
| uiItemR(sub, ptr, "z_scale", DEFAULT_FLAGS, NULL, ICON_NONE); | uiItemR(sub, ptr, "z_scale", DEFAULT_FLAGS, NULL, ICON_NONE); | ||||
| } | } | ||||
| static void node_composit_buts_antialiasing(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | |||||
| { | |||||
| uiLayout *col; | |||||
| col = uiLayoutColumn(layout, false); | |||||
| uiItemR(col, ptr, "threshold", 0, NULL, ICON_NONE); | |||||
| uiItemR(col, ptr, "contrast_limit", 0, NULL, ICON_NONE); | |||||
| uiItemR(col, ptr, "corner_rounding", 0, NULL, ICON_NONE); | |||||
| } | |||||
| /* qdn: glare node */ | /* qdn: glare node */ | ||||
| static void node_composit_buts_glare(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | static void node_composit_buts_glare(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | ||||
| { | { | ||||
| uiItemR(layout, ptr, "glare_type", DEFAULT_FLAGS, "", ICON_NONE); | uiItemR(layout, ptr, "glare_type", DEFAULT_FLAGS, "", ICON_NONE); | ||||
| uiItemR(layout, ptr, "quality", DEFAULT_FLAGS, "", ICON_NONE); | uiItemR(layout, ptr, "quality", DEFAULT_FLAGS, "", ICON_NONE); | ||||
| if (RNA_enum_get(ptr, "glare_type") != 1) { | if (RNA_enum_get(ptr, "glare_type") != 1) { | ||||
| uiItemR(layout, ptr, "iterations", DEFAULT_FLAGS, NULL, ICON_NONE); | uiItemR(layout, ptr, "iterations", DEFAULT_FLAGS, NULL, ICON_NONE); | ||||
| ▲ Show 20 Lines • Show All 1,255 Lines • ▼ Show 20 Lines | case CMP_NODE_DBLUR: | ||||
| ntype->draw_buttons = node_composit_buts_dblur; | ntype->draw_buttons = node_composit_buts_dblur; | ||||
| break; | break; | ||||
| case CMP_NODE_BILATERALBLUR: | case CMP_NODE_BILATERALBLUR: | ||||
| ntype->draw_buttons = node_composit_buts_bilateralblur; | ntype->draw_buttons = node_composit_buts_bilateralblur; | ||||
| break; | break; | ||||
| case CMP_NODE_DEFOCUS: | case CMP_NODE_DEFOCUS: | ||||
| ntype->draw_buttons = node_composit_buts_defocus; | ntype->draw_buttons = node_composit_buts_defocus; | ||||
| break; | break; | ||||
| case CMP_NODE_ANTIALIASING: | |||||
| ntype->draw_buttons = node_composit_buts_antialiasing; | |||||
| break; | |||||
| case CMP_NODE_GLARE: | case CMP_NODE_GLARE: | ||||
| ntype->draw_buttons = node_composit_buts_glare; | ntype->draw_buttons = node_composit_buts_glare; | ||||
| break; | break; | ||||
| case CMP_NODE_TONEMAP: | case CMP_NODE_TONEMAP: | ||||
| ntype->draw_buttons = node_composit_buts_tonemap; | ntype->draw_buttons = node_composit_buts_tonemap; | ||||
| break; | break; | ||||
| case CMP_NODE_LENSDIST: | case CMP_NODE_LENSDIST: | ||||
| ntype->draw_buttons = node_composit_buts_lensdist; | ntype->draw_buttons = node_composit_buts_lensdist; | ||||
| ▲ Show 20 Lines • Show All 1,314 Lines • Show Last 20 Lines | |||||