[Bf-blender-cvs] [506aa3b7889] tracking_tools: MCE: Only draw annotation placement panel with Clip

Sebastian Koenig noreply at git.blender.org
Thu Jul 22 09:19:12 CEST 2021


Commit: 506aa3b788995af18183658f4d7703f84e024ad3
Author: Sebastian Koenig
Date:   Thu Jul 22 09:17:34 2021 +0200
Branches: tracking_tools
https://developer.blender.org/rB506aa3b788995af18183658f4d7703f84e024ad3

MCE: Only draw annotation placement panel with Clip

The annotation placement panel only makes sense when the Data Source is
CLIP, when TRACK is use the anntation placement options don't apply.

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

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 616159161ea..fd45b7cd337 100644
--- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
@@ -197,8 +197,9 @@ class _defs_annotate:
             row.label(text="Data Source:")
             row.prop(context.space_data, "annotation_source", expand=True)
 
-            row = layout.row(align=True)
-            row.prop(tool_settings, "annotation_stroke_placement_view2d", text="Placement")
+            if context.space_data.annotation_source == 'CLIP':
+                row = layout.row(align=True)
+                row.prop(tool_settings, "annotation_stroke_placement_view2d", text="Placement")
         if tool.idname == "builtin.annotate_line":
             layout.separator()



More information about the Bf-blender-cvs mailing list