[Bf-blender-cvs] [995bb0860a5] master: Cleanup: remove redundant draw callback

Campbell Barton noreply at git.blender.org
Sat Mar 6 09:33:29 CET 2021


Commit: 995bb0860a540e2f0240dc34a1f2628dcf87e09a
Author: Campbell Barton
Date:   Sat Mar 6 19:24:31 2021 +1100
Branches: master
https://developer.blender.org/rB995bb0860a540e2f0240dc34a1f2628dcf87e09a

Cleanup: remove redundant draw callback

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

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

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

diff --git a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
index 46c2c24cb6f..1e52142c85c 100644
--- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
@@ -2411,8 +2411,6 @@ class _defs_sequencer_generic:
 
     @ToolDef.from_fn
     def sample():
-        def draw_settings(_context, layout, tool):
-            props = tool.operator_properties("sequencer.sample")
         return dict(
             idname="builtin.sample",
             label="Sample",
@@ -2421,7 +2419,6 @@ class _defs_sequencer_generic:
             ),
             icon="ops.paint.weight_sample",  # XXX, needs own icon.
             keymap="Sequencer Tool: Sample",
-            draw_settings=draw_settings,
         )



More information about the Bf-blender-cvs mailing list