[Bf-blender-cvs] [ee5e117ae89] tracking_tools: Fix circle select tool in clip editor

Sergey Sharybin noreply at git.blender.org
Tue May 17 11:39:35 CEST 2022


Commit: ee5e117ae8998bca7e5fb16e4fe9a54a16bf0fbc
Author: Sergey Sharybin
Date:   Tue May 17 11:37:54 2022 +0200
Branches: tracking_tools
https://developer.blender.org/rBee5e117ae8998bca7e5fb16e4fe9a54a16bf0fbc

Fix circle select tool in clip editor

The API changed and the number of circle segments is to be passed as a
keyword argument.

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

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 97fe025d890..c80626b6125 100644
--- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
@@ -2414,7 +2414,7 @@ class _defs_clip_select:
             from gpu_extras.presets import draw_circle_2d
             props = tool.operator_properties("clip.select_circle")
             radius = props.radius
-            draw_circle_2d(xy, (1.0,) * 4, radius, 32)
+            draw_circle_2d(xy, (1.0,) * 4, radius, segments=32)
 
         return dict(
             idname="builtin.select_circle",
@@ -2426,6 +2426,7 @@ class _defs_clip_select:
             draw_cursor=draw_cursor,
         )
 
+
 class _defs_clip_tracking_tools:
 
     @ToolDef.from_fn
@@ -2523,7 +2524,7 @@ class _defs_mask_select:
             from gpu_extras.presets import draw_circle_2d
             props = tool.operator_properties("mask.select_circle")
             radius = props.radius
-            draw_circle_2d(xy, (1.0,) * 4, radius, 32)
+            draw_circle_2d(xy, (1.0,) * 4, radius, segments=32)
 
         return dict(
             idname="builtin.select_circle",
@@ -2554,6 +2555,7 @@ class _defs_mask_tools:
             draw_settings=draw_settings,
             keymap="Mask Editing: Add Vertex and Slide"
         )
+
     @ToolDef.from_fn
     def add_feather_vertex_slide():
         def draw_settings(_context, layout, tool):



More information about the Bf-blender-cvs mailing list