Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2020-12-03 18:46:16 +0300
committerAntonio Vazquez <blendergit@gmail.com>2020-12-03 18:49:40 +0300
commit986955a2d53a5fd94be38f22e0eb954333763aff (patch)
treee8bdd4d17e1819d705e50094200a4497161ab131 /release
parent570a16da180a917021db77e7ec2c034793e4c3f5 (diff)
GPencil: Add Vertex Paint operators to Paint menu
These operators existed since 2.83, but the menu was hidden by error. Also the operators have been cleanup and make multiframe compatible. Reviewed By: mendio Differential Revision: https://developer.blender.org/D9671
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py23
1 files changed, 6 insertions, 17 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 5af88e15111..10c9f25b92a 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -1828,7 +1828,13 @@ class VIEW3D_MT_paint_gpencil(Menu):
def draw(self, context):
layout = self.layout
+ layout.operator("gpencil.vertex_color_set", text="Set Vertex Colors")
layout.operator("gpencil.stroke_reset_vertex_color")
+ layout.separator()
+ layout.operator("gpencil.vertex_color_invert", text="Invert")
+ layout.operator("gpencil.vertex_color_levels", text="Levels")
+ layout.operator("gpencil.vertex_color_hsv", text="Hue Saturation Value")
+ layout.operator("gpencil.vertex_color_brightness_contrast", text="Bright/Contrast")
class VIEW3D_MT_select_gpencil(Menu):
@@ -5044,22 +5050,6 @@ class VIEW3D_MT_weight_gpencil(Menu):
layout.menu("VIEW3D_MT_gpencil_autoweights")
-class VIEW3D_MT_vertex_gpencil(Menu):
- bl_label = "Paint"
-
- def draw(self, _context):
- layout = self.layout
- layout.operator("gpencil.vertex_color_set", text="Set Vertex Colors")
- layout.separator()
- layout.operator("gpencil.vertex_color_invert", text="Invert")
- layout.operator("gpencil.vertex_color_levels", text="Levels")
- layout.operator("gpencil.vertex_color_hsv", text="Hue Saturation Value")
- layout.operator("gpencil.vertex_color_brightness_contrast", text="Bright/Contrast")
-
- layout.separator()
- layout.menu("VIEW3D_MT_join_palette")
-
-
class VIEW3D_MT_gpencil_animation(Menu):
bl_label = "Animation"
@@ -7606,7 +7596,6 @@ classes = (
VIEW3D_MT_edit_gpencil_delete,
VIEW3D_MT_edit_gpencil_showhide,
VIEW3D_MT_weight_gpencil,
- VIEW3D_MT_vertex_gpencil,
VIEW3D_MT_gpencil_animation,
VIEW3D_MT_gpencil_simplify,
VIEW3D_MT_gpencil_copy_layer,