Operator to duplicate the active Grease Pencil layer

TODO: this needs a proper "duplicate" icon, without the "ID" label
This commit is contained in:
2014-12-31 14:20:44 +13:00
parent 70b6c82fd3
commit d5f3aee41f
4 changed files with 50 additions and 0 deletions

View File

@@ -361,6 +361,8 @@ class GreasePencilDataPanel():
gpl = context.active_gpencil_layer
if gpl:
sub.operator("gpencil.layer_duplicate", icon='COPY_ID', text="") # XXX: needs a dedicated icon
col.separator()
sub = col.column(align=True)