Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpencil_modifiers/intern/MOD_gpencilarray.c
| Show First 20 Lines • Show All 379 Lines • ▼ Show 20 Lines | |||||
| * Object offset in a subpanel for consistency with the other offset types. | * Object offset in a subpanel for consistency with the other offset types. | ||||
| */ | */ | ||||
| static void object_offset_header_draw(const bContext *UNUSED(C), Panel *panel) | static void object_offset_header_draw(const bContext *UNUSED(C), Panel *panel) | ||||
| { | { | ||||
| uiLayout *layout = panel->layout; | uiLayout *layout = panel->layout; | ||||
| PointerRNA *ptr = gpencil_modifier_panel_get_property_pointers(panel, NULL); | PointerRNA *ptr = gpencil_modifier_panel_get_property_pointers(panel, NULL); | ||||
| uiItemR(layout, ptr, "use_object_offset", 0, NULL, ICON_NONE); | uiItemR(layout, ptr, "use_object_offset", 0, IFACE_("Object Offset"), ICON_NONE); | ||||
| } | } | ||||
| static void object_offset_draw(const bContext *UNUSED(C), Panel *panel) | static void object_offset_draw(const bContext *UNUSED(C), Panel *panel) | ||||
| { | { | ||||
| uiLayout *layout = panel->layout; | uiLayout *layout = panel->layout; | ||||
| PointerRNA *ptr = gpencil_modifier_panel_get_property_pointers(panel, NULL); | PointerRNA *ptr = gpencil_modifier_panel_get_property_pointers(panel, NULL); | ||||
| uiLayoutSetPropSep(layout, true); | uiLayoutSetPropSep(layout, true); | ||||
| uiLayout *col = uiLayoutColumn(layout, false); | uiLayout *col = uiLayoutColumn(layout, false); | ||||
| uiLayoutSetActive(col, RNA_boolean_get(ptr, "use_object_offset")); | uiLayoutSetActive(col, RNA_boolean_get(ptr, "use_object_offset")); | ||||
| uiItemR(col, ptr, "offset_object", 0, NULL, ICON_NONE); | uiItemR(col, ptr, "offset_object", 0, IFACE_("Object"), ICON_NONE); | ||||
| } | } | ||||
| static void random_panel_draw(const bContext *UNUSED(C), Panel *panel) | static void random_panel_draw(const bContext *UNUSED(C), Panel *panel) | ||||
| { | { | ||||
| uiLayout *layout = panel->layout; | uiLayout *layout = panel->layout; | ||||
| PointerRNA *ptr = gpencil_modifier_panel_get_property_pointers(panel, NULL); | PointerRNA *ptr = gpencil_modifier_panel_get_property_pointers(panel, NULL); | ||||
| ▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines | |||||