[Bf-blender-cvs] [d424344af1c] tracking_tools: Annotations: only show data source for image placement
Aaron Carlisle
noreply at git.blender.org
Tue Jul 27 02:40:41 CEST 2021
Commit: d424344af1c015b7c4f5b2d8cc824c014a87d4de
Author: Aaron Carlisle
Date: Mon Jul 26 20:40:33 2021 -0400
Branches: tracking_tools
https://developer.blender.org/rBd424344af1c015b7c4f5b2d8cc824c014a87d4de
Annotations: only show data source for image placement
This option is only relevent for that placement mode
===================================================================
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 567d47b2537..c0a9c5fc208 100644
--- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
@@ -196,12 +196,9 @@ class _defs_annotate:
row = layout.row(align=True)
row.prop(tool_settings, "annotation_stroke_placement_view2d", text="Placement")
-
- if space_type == 'CLIP_EDITOR':
- layout.separator()
- row = layout.row(align=True)
- row.label(text="Data Source:")
- row.prop(context.space_data, "annotation_source", expand=True)
+ if (space_type == 'CLIP_EDITOR') and (tool_settings.annotation_stroke_placement_view2d == 'IMAGE'):
+ row = layout.row(align=True)
+ row.prop(context.space_data, "annotation_source", text="Data Source", expand=True)
if tool.idname == "builtin.annotate_line":
layout.separator()
More information about the Bf-blender-cvs
mailing list