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:
authorCampbell Barton <ideasman42@gmail.com>2019-02-21 07:43:39 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-02-21 07:43:39 +0300
commite644da1f8e3522205b529bc7b397096db2e9e069 (patch)
tree7afdff199ca2f80b743f37211a52c090233b6150 /release/scripts/startup/bl_ui/space_view3d.py
parenta0881a4e9409c5bbc4a9eb2babcaaff03a8b26c7 (diff)
Keymap: add context menus for paint modes
These are place-holders with only a few items in each, as with the rest of the context menus they need to be populated & organized. Weight Paint 'weight' shortcut has been changed from W to Ctrl-F, to co-exist w/ the context menu shortcut.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_view3d.py')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py47
1 files changed, 47 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 3401be87442..f2ba6fe695d 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -2244,6 +2244,26 @@ class VIEW3D_MT_paint_vertex(Menu):
layout.operator("paint.vertex_color_brightness_contrast", text="Bright/Contrast")
+class VIEW3D_MT_paint_vertex_specials(Menu):
+ bl_label = "Vertex Paint Context Menu"
+
+ def draw(self, context):
+ layout = self.layout
+ # TODO: populate with useful items.
+ layout.operator("paint.vertex_color_set")
+ layout.separator()
+ layout.operator("paint.vertex_color_smooth")
+
+
+class VIEW3D_MT_paint_texture_specials(Menu):
+ bl_label = "Texture Paint Context Menu"
+
+ def draw(self, context):
+ layout = self.layout
+ # TODO: populate with useful items.
+ layout.operator("image.save_dirty")
+
+
class VIEW3D_MT_hook(Menu):
bl_label = "Hooks"
@@ -2341,6 +2361,19 @@ class VIEW3D_MT_paint_weight(Menu):
self.draw_generic(self.layout, is_editmode=False)
+class VIEW3D_MT_paint_weight_specials(Menu):
+ bl_label = "Weights Context Menu"
+
+ def draw(self, context):
+ layout = self.layout
+ # TODO: populate with useful items.
+ layout.operator("paint.weight_set")
+ layout.separator()
+ layout.operator("object.vertex_group_normalize", text="Normalize")
+ layout.operator("object.vertex_group_clean", text="Clean")
+ layout.operator("object.vertex_group_smooth", text="Smooth")
+
+
class VIEW3D_MT_sculpt(Menu):
bl_label = "Sculpt"
@@ -2374,6 +2407,16 @@ class VIEW3D_MT_sculpt(Menu):
layout.prop(sculpt, "show_mask")
+class VIEW3D_MT_sculpt_specials(Menu):
+ bl_label = "Sculpt Context Menu"
+
+ def draw(self, context):
+ layout = self.layout
+ # TODO: populate with useful items.
+ layout.operator("object.shade_smooth")
+ layout.operator("object.shade_flat")
+
+
class VIEW3D_MT_hide_mask(Menu):
bl_label = "Hide/Mask"
@@ -5753,10 +5796,14 @@ classes = (
VIEW3D_MT_brush,
VIEW3D_MT_brush_paint_modes,
VIEW3D_MT_paint_vertex,
+ VIEW3D_MT_paint_vertex_specials,
+ VIEW3D_MT_paint_texture_specials,
VIEW3D_MT_hook,
VIEW3D_MT_vertex_group,
VIEW3D_MT_paint_weight,
+ VIEW3D_MT_paint_weight_specials,
VIEW3D_MT_sculpt,
+ VIEW3D_MT_sculpt_specials,
VIEW3D_MT_hide_mask,
VIEW3D_MT_particle,
VIEW3D_MT_particle_specials,