Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c
| Show First 20 Lines • Show All 391 Lines • ▼ Show 20 Lines | static void edge_types_panel_draw(const bContext *UNUSED(C), Panel *panel) | ||||
| uiItemR(col, ptr, "use_loose", 0, IFACE_("Loose"), ICON_NONE); | uiItemR(col, ptr, "use_loose", 0, IFACE_("Loose"), ICON_NONE); | ||||
| entry = uiLayoutColumn(col, false); | entry = uiLayoutColumn(col, false); | ||||
| uiLayoutSetActive(entry, has_light); | uiLayoutSetActive(entry, has_light); | ||||
| sub = uiLayoutRow(entry, false); | sub = uiLayoutRow(entry, false); | ||||
| uiItemR(sub, ptr, "use_light_contour", 0, IFACE_("Light Contour"), ICON_NONE); | uiItemR(sub, ptr, "use_light_contour", 0, IFACE_("Light Contour"), ICON_NONE); | ||||
| uiItemR(entry, ptr, "use_shadow", 0, IFACE_("Cast Shadow"), ICON_NONE); | uiItemR(entry, ptr, "use_shadow", 0, CTX_IFACE_(BLT_I18NCONTEXT_ID_GPENCIL, "Cast Shadow"), ICON_NONE); | ||||
| uiItemL(layout, IFACE_("Options"), ICON_NONE); | uiItemL(layout, IFACE_("Options"), ICON_NONE); | ||||
| sub = uiLayoutColumn(layout, false); | sub = uiLayoutColumn(layout, false); | ||||
| if (use_cache && !is_first) { | if (use_cache && !is_first) { | ||||
| uiItemL(sub, IFACE_("Type overlapping cached"), ICON_INFO); | uiItemL(sub, IFACE_("Type overlapping cached"), ICON_INFO); | ||||
| } | } | ||||
| else { | else { | ||||
| Show All 28 Lines | static void options_light_reference_draw(const bContext *UNUSED(C), Panel *panel) | ||||
| uiItemR(layout, ptr, "light_contour_object", 0, NULL, ICON_NONE); | uiItemR(layout, ptr, "light_contour_object", 0, NULL, ICON_NONE); | ||||
| uiLayout *remaining = uiLayoutColumn(layout, false); | uiLayout *remaining = uiLayoutColumn(layout, false); | ||||
| uiLayoutSetActive(remaining, has_light); | uiLayoutSetActive(remaining, has_light); | ||||
| uiItemR(remaining, ptr, "shadow_camera_size", 0, NULL, ICON_NONE); | uiItemR(remaining, ptr, "shadow_camera_size", 0, NULL, ICON_NONE); | ||||
| uiLayout *col = uiLayoutColumn(remaining, true); | uiLayout *col = uiLayoutColumn(remaining, true); | ||||
| uiItemR(col, ptr, "shadow_camera_near", 0, "Near", ICON_NONE); | uiItemR(col, ptr, "shadow_camera_near", 0, IFACE_("Near"), ICON_NONE); | ||||
| uiItemR(col, ptr, "shadow_camera_far", 0, "Far", ICON_NONE); | uiItemR(col, ptr, "shadow_camera_far", 0, IFACE_("Far"), ICON_NONE); | ||||
| } | } | ||||
| static void options_panel_draw(const bContext *UNUSED(C), Panel *panel) | static void options_panel_draw(const bContext *UNUSED(C), Panel *panel) | ||||
| { | { | ||||
| uiLayout *layout = panel->layout; | uiLayout *layout = panel->layout; | ||||
| PointerRNA ob_ptr; | PointerRNA ob_ptr; | ||||
| PointerRNA *ptr = gpencil_modifier_panel_get_property_pointers(panel, &ob_ptr); | PointerRNA *ptr = gpencil_modifier_panel_get_property_pointers(panel, &ob_ptr); | ||||
| ▲ Show 20 Lines • Show All 375 Lines • Show Last 20 Lines | |||||