[Bf-blender-cvs] [a797eb8deb4] greasepencil-object: GPencil: Add Frame options to Vertex and Weight paint context menu

Antonio Vazquez noreply at git.blender.org
Sat Feb 29 20:16:34 CET 2020


Commit: a797eb8deb41a0651bd240e75301139d6c27979f
Author: Antonio Vazquez
Date:   Sat Feb 29 20:16:26 2020 +0100
Branches: greasepencil-object
https://developer.blender.org/rBa797eb8deb41a0651bd240e75301139d6c27979f

GPencil: Add Frame options to Vertex and Weight paint context menu

===================================================================

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 51007008c6c..a92c03450af 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -6878,6 +6878,7 @@ class VIEW3D_PT_gpencil_weight_context_menu(Panel):
     bl_space_type = 'VIEW_3D'
     bl_region_type = 'WINDOW'
     bl_label = "Weight Paint Context Menu"
+    bl_ui_units_x = 12
 
     def draw(self, context):
         ts = context.tool_settings
@@ -6893,6 +6894,9 @@ class VIEW3D_PT_gpencil_weight_context_menu(Panel):
         # Layers
         draw_gpencil_layer_active(context, layout)
 
+        # Frames
+        draw_gpencil_keyframe_buttons(layout)
+
 
 class VIEW3D_PT_gpencil_draw_context_menu(Panel):
     bl_space_type = 'VIEW_3D'
@@ -6934,6 +6938,7 @@ class VIEW3D_PT_gpencil_vertex_context_menu(Panel):
     bl_space_type = 'VIEW_3D'
     bl_region_type = 'WINDOW'
     bl_label = "Vertex Paint Context Menu"
+    bl_ui_units_x = 12
 
     def draw(self, context):
         layout = self.layout
@@ -6966,6 +6971,9 @@ class VIEW3D_PT_gpencil_vertex_context_menu(Panel):
         # Layers
         draw_gpencil_layer_active(context, layout)
 
+        # Frames
+        draw_gpencil_keyframe_buttons(layout)
+
 
 class VIEW3D_PT_paint_vertex_context_menu(Panel):
     # Only for popover, these are dummy values.



More information about the Bf-blender-cvs mailing list