[Bf-blender-cvs] [0df6224d486] master: GPencil: Context menu update
Matias Mendiola
noreply at git.blender.org
Tue Sep 3 19:05:05 CEST 2019
Commit: 0df6224d486085bbbb07e9b1dadeee9e31ce6204
Author: Matias Mendiola
Date: Tue Sep 3 19:04:04 2019 +0200
Branches: master
https://developer.blender.org/rB0df6224d486085bbbb07e9b1dadeee9e31ce6204
GPencil: Context menu update
Add missed 'Insert Blank keyframe in All Layers' to context menu
Reviewers: antoniov, pepeland
Tags: #bf_blender, #grease_pencil
Differential Revision: https://developer.blender.org/D5669
===================================================================
M release/scripts/startup/bl_ui/space_view3d.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index fc27b3c6cc9..501cda1d67a 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -6428,7 +6428,11 @@ class VIEW3D_PT_gpencil_sculpt_context_menu(Panel):
layout.operator_context = 'INVOKE_REGION_WIN'
- layout.operator("gpencil.blank_frame_add", text="Insert Blank", icon='ADD')
+ layout.operator("gpencil.blank_frame_add", text="Insert Blank in Active Layer", icon='ADD')
+ layout.operator("gpencil.blank_frame_add", text="Insert Blank in All Layers", icon='ADD').all_layers = True
+
+ layout.separator()
+
layout.operator("gpencil.frame_duplicate", text="Duplicate Active Layer", icon='DUPLICATE')
layout.operator("gpencil.frame_duplicate", text="Duplicate All Layers", icon='DUPLICATE').mode = 'ALL'
@@ -6461,7 +6465,11 @@ class VIEW3D_PT_gpencil_draw_context_menu(Panel):
layout.operator_context = 'INVOKE_REGION_WIN'
- layout.operator("gpencil.blank_frame_add", text="Insert Blank", icon='ADD')
+ layout.operator("gpencil.blank_frame_add", text="Insert Blank in Active Layer", icon='ADD')
+ layout.operator("gpencil.blank_frame_add", text="Insert Blank in All Layers", icon='ADD').all_layers = True
+
+ layout.separator()
+
layout.operator("gpencil.frame_duplicate", text="Duplicate Active Layer", icon='DUPLICATE')
layout.operator("gpencil.frame_duplicate", text="Duplicate All Layers", icon='DUPLICATE').mode = 'ALL'
More information about the Bf-blender-cvs
mailing list