Operator to duplicate the active Grease Pencil layer
[blender.git] / release / scripts / startup / bl_ui / properties_grease_pencil_common.py
index 75f6921b0c3bed36a171417f6609852eceee98ee..6b4bccda7d8c80130c8889f50a583e58880f309b 100644 (file)
@@ -361,6 +361,8 @@ class GreasePencilDataPanel():
 
         gpl = context.active_gpencil_layer
         if gpl:
 
         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)
             col.separator()
 
             sub = col.column(align=True)