[Bf-blender-cvs] [38e7a17037f] temp-gpencil-interpolate: GPencil: Show set operator only if selected is enabled

Antonio Vazquez noreply at git.blender.org
Mon Dec 21 12:12:53 CET 2020


Commit: 38e7a17037fb234f60c1952504440c15552508bb
Author: Antonio Vazquez
Date:   Mon Dec 21 12:11:57 2020 +0100
Branches: temp-gpencil-interpolate
https://developer.blender.org/rB38e7a17037fb234f60c1952504440c15552508bb

GPencil: Show set operator only if selected is enabled

===================================================================

M	release/scripts/startup/bl_ui/space_view3d_toolbar.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index ee2214cf3dc..7946117ba3b 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -1693,8 +1693,6 @@ class VIEW3D_PT_tools_grease_pencil_interpolate(Panel):
 
         col = layout.column(align=True)
         col.label(text="Interpolate Strokes")
-        col.operator("gpencil.interpolate_set", text="Set")
-        col.separator()
         col.operator("gpencil.interpolate", text="Interpolate")
         col.operator("gpencil.interpolate_sequence", text="Sequence")
         col.operator("gpencil.interpolate_reverse", text="Remove Breakdowns")
@@ -1706,6 +1704,8 @@ class VIEW3D_PT_tools_grease_pencil_interpolate(Panel):
         gpd = context.gpencil_data
         if gpd.use_stroke_edit_mode:
             col.prop(settings, "interpolate_selected_only")
+            if settings.interpolate_selected_only:
+                col.operator("gpencil.interpolate_set", text="Set")
 
         col = layout.column(align=True)
         col.label(text="Sequence Options:")



More information about the Bf-blender-cvs mailing list