Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_data_gpencil.py
| Show First 20 Lines • Show All 336 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| row = layout.row() | row = layout.row() | ||||
| row.template_list("GPENCIL_UL_vgroups", "", ob, "vertex_groups", ob.vertex_groups, "active_index", rows=rows) | row.template_list("GPENCIL_UL_vgroups", "", ob, "vertex_groups", ob.vertex_groups, "active_index", rows=rows) | ||||
| col = row.column(align=True) | col = row.column(align=True) | ||||
| col.operator("object.vertex_group_add", icon='ADD', text="") | col.operator("object.vertex_group_add", icon='ADD', text="") | ||||
| col.operator("object.vertex_group_remove", icon='REMOVE', text="").all = False | col.operator("object.vertex_group_remove", icon='REMOVE', text="").all = False | ||||
| if group: | |||||
| col.separator() | |||||
| col.operator("object.vertex_group_move", icon='TRIA_UP', text="").direction = 'UP' | |||||
| col.operator("object.vertex_group_move", icon='TRIA_DOWN', text="").direction = 'DOWN' | |||||
| if ob.vertex_groups: | if ob.vertex_groups: | ||||
| row = layout.row() | row = layout.row() | ||||
| sub = row.row(align=True) | sub = row.row(align=True) | ||||
| sub.operator("gpencil.vertex_group_assign", text="Assign") | sub.operator("gpencil.vertex_group_assign", text="Assign") | ||||
| sub.operator("gpencil.vertex_group_remove_from", text="Remove") | sub.operator("gpencil.vertex_group_remove_from", text="Remove") | ||||
| sub = row.row(align=True) | sub = row.row(align=True) | ||||
| ▲ Show 20 Lines • Show All 105 Lines • Show Last 20 Lines | |||||