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/startup/bl_ui/properties_grease_pencil_common.py
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/startup/bl_ui/properties_grease_pencil_common.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_grease_pencil_common.py15
1 files changed, 12 insertions, 3 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):