Changeset View
Changeset View
Standalone View
Standalone View
source/blender/shader_fx/intern/FX_shader_pixel.c
| Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | static void panel_draw(const bContext *C, Panel *panel) | ||||
| uiLayoutSetPropSep(layout, true); | uiLayoutSetPropSep(layout, true); | ||||
| /* Add the X, Y labels manually because size is a #PROP_PIXEL. */ | /* Add the X, Y labels manually because size is a #PROP_PIXEL. */ | ||||
| col = uiLayoutColumn(layout, true); | col = uiLayoutColumn(layout, true); | ||||
| PropertyRNA *prop = RNA_struct_find_property(&ptr, "size"); | PropertyRNA *prop = RNA_struct_find_property(&ptr, "size"); | ||||
| uiItemFullR(col, &ptr, prop, 0, 0, 0, IFACE_("Size X"), ICON_NONE); | uiItemFullR(col, &ptr, prop, 0, 0, 0, IFACE_("Size X"), ICON_NONE); | ||||
| uiItemFullR(col, &ptr, prop, 1, 0, 0, IFACE_("Y"), ICON_NONE); | uiItemFullR(col, &ptr, prop, 1, 0, 0, IFACE_("Y"), ICON_NONE); | ||||
| uiItemR(layout, &ptr, "use_antialiasing", 0, NULL, ICON_NONE); | |||||
| shaderfx_panel_end(layout, &ptr); | shaderfx_panel_end(layout, &ptr); | ||||
| } | } | ||||
| static void panelRegister(ARegionType *region_type) | static void panelRegister(ARegionType *region_type) | ||||
| { | { | ||||
| shaderfx_panel_register(region_type, eShaderFxType_Pixel, panel_draw); | shaderfx_panel_register(region_type, eShaderFxType_Pixel, panel_draw); | ||||
| } | } | ||||
| Show All 18 Lines | |||||