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>2019-08-27 00:08:24 +0300
committerAntonio Vazquez <blendergit@gmail.com>2019-08-27 16:47:43 +0300
commit0067b3b09b1c74809d03480fea1292246b45fa65 (patch)
tree85d3a2dfcdb5ad6a763aaf8ffec6cfc1969d55d4 /release/scripts
parent8e4f3b2bb070a5022200c43866e81b6d5b8d3d1a (diff)
GPencil: Draw Mode menu update
- Rename menu 'Stroke' to 'Draw': the menu includes not only strokes related things and the name follows the usage in other paint modes in Blender. - Remove duplicate animation operators. - Menu updates to include clean up and layers operators that don't need previous selection. {F7705120} Reviewers: antoniov, pepeland, billreynish Tags: #bf_blender, #grease_pencil Differential Revision: https://developer.blender.org/D5599
Diffstat (limited to 'release/scripts')
-rw-r--r--release/scripts/startup/bl_ui/properties_grease_pencil_common.py15
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py6
2 files changed, 15 insertions, 6 deletions
diff --git a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
index 46e969b3959..60a8418fed6 100644
--- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
+++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
@@ -606,16 +606,25 @@ class GPENCIL_MT_cleanup(Menu):
bl_label = "Clean Up"
def draw(self, _context):
+
+ ob = _context.active_object
+
layout = self.layout
+
layout.operator("gpencil.frame_clean_loose", text="Delete Loose Points")
- layout.operator("gpencil.stroke_merge_by_distance", text="Merge by Distance")
+
+ if ob.mode != 'PAINT_GPENCIL':
+ layout.operator("gpencil.stroke_merge_by_distance", text="Merge by Distance")
+
layout.separator()
layout.operator("gpencil.frame_clean_fill", text="Boundary Strokes").mode = 'ACTIVE'
layout.operator("gpencil.frame_clean_fill", text="Boundary Strokes all Frames").mode = 'ALL'
- layout.separator()
- layout.operator("gpencil.reproject")
+ if ob.mode != 'PAINT_GPENCIL':
+ layout.separator()
+
+ layout.operator("gpencil.reproject")
class GPENCIL_UL_annotation_layer(UIList):
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 0433ef10ecf..33b950ab468 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -4389,7 +4389,7 @@ class VIEW3D_MT_gpencil_simplify(Menu):
class VIEW3D_MT_paint_gpencil(Menu):
- bl_label = "Strokes"
+ bl_label = "Draw"
def draw(self, _context):
@@ -4400,8 +4400,8 @@ class VIEW3D_MT_paint_gpencil(Menu):
layout.separator()
- layout.operator("gpencil.delete", text="Delete Frame").type = 'FRAME'
- layout.operator("gpencil.active_frames_delete_all")
+ layout.menu("VIEW3D_MT_edit_gpencil_showhide")
+ layout.menu("GPENCIL_MT_cleanup")
class VIEW3D_MT_assign_material(Menu):