Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_grease_pencil_common.py
| Show First 20 Lines • Show All 320 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| layout.operator("gpencil.frame_clean_loose", text="Delete Loose Points") | layout.operator("gpencil.frame_clean_loose", text="Delete Loose Points") | ||||
| if ob.mode != 'PAINT_GPENCIL': | if ob.mode != 'PAINT_GPENCIL': | ||||
| layout.operator("gpencil.stroke_merge_by_distance", text="Merge by Distance") | layout.operator("gpencil.stroke_merge_by_distance", text="Merge by Distance") | ||||
| layout.separator() | layout.separator() | ||||
| layout.operator("gpencil.frame_clean_duplicate", text="Delete Duplicated Frames") | layout.operator("gpencil.frame_clean_duplicate", text="Delete Duplicate Frames") | ||||
| layout.operator("gpencil.recalc_geometry", text="Recalculate Geometry") | layout.operator("gpencil.recalc_geometry", text="Recalculate Geometry") | ||||
| if ob.mode != 'PAINT_GPENCIL': | if ob.mode != 'PAINT_GPENCIL': | ||||
| layout.operator("gpencil.reproject") | layout.operator("gpencil.reproject") | ||||
| class GPENCIL_UL_annotation_layer(UIList): | class GPENCIL_UL_annotation_layer(UIList): | ||||
| def draw_item(self, _context, layout, _data, item, icon, _active_data, _active_propname, _index): | def draw_item(self, _context, layout, _data, item, icon, _active_data, _active_propname, _index): | ||||
| # assert(isinstance(item, bpy.types.GPencilLayer) | # assert(isinstance(item, bpy.types.GPencilLayer) | ||||
| ▲ Show 20 Lines • Show All 575 Lines • Show Last 20 Lines | |||||