diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2020-11-03 19:21:51 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2020-11-03 19:22:03 +0300 |
commit | 216880bb4733a98af8bb6525c237b71b9dff2062 (patch) | |
tree | 3f17f6dd8a8a90dd58ace7c4a5afee79b41dbe97 /release | |
parent | 756708627613f5bdc54ec366557c40d90f2abf9d (diff) |
GPencil: Reorganize Cleanup menu
Reviewed by @mendio
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_grease_pencil_common.py | 17 |
1 files changed, 7 insertions, 10 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 efc62b6ff4c..e41858587bf 100644 --- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py +++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py @@ -404,25 +404,22 @@ class GPENCIL_MT_cleanup(Menu): layout = self.layout - layout.operator("gpencil.frame_clean_loose", text="Delete Loose Points") - layout.operator("gpencil.frame_clean_duplicate", text="Delete Duplicated Frames") - - if ob.mode != 'PAINT_GPENCIL': - layout.operator("gpencil.stroke_merge_by_distance", text="Merge by Distance") + 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.frame_clean_fill", text="Boundary Strokes").mode = 'ACTIVE' - layout.operator("gpencil.frame_clean_fill", text="Boundary Strokes all Frames").mode = 'ALL' + layout.operator("gpencil.frame_clean_loose", text="Delete Loose Points") if ob.mode != 'PAINT_GPENCIL': - layout.separator() - - layout.operator("gpencil.reproject") + layout.operator("gpencil.stroke_merge_by_distance", text="Merge by Distance") layout.separator() + layout.operator("gpencil.frame_clean_duplicate", text="Delete Duplicated Frames") layout.operator("gpencil.recalc_geometry", text="Recalculate Geometry") + if ob.mode != 'PAINT_GPENCIL': + layout.operator("gpencil.reproject") class GPENCIL_UL_annotation_layer(UIList): |