[Bf-blender-cvs] [62d9dabc7db] master: UI: Clip: Fix checkbox wrongly greying out entire column

Aaron Carlisle noreply at git.blender.org
Sat Jul 10 01:23:17 CEST 2021


Commit: 62d9dabc7db4e241df9fc0edfc571b929493c331
Author: Aaron Carlisle
Date:   Fri Jul 9 19:23:08 2021 -0400
Branches: master
https://developer.blender.org/rB62d9dabc7db4e241df9fc0edfc571b929493c331

UI: Clip: Fix checkbox wrongly greying out entire column

The Pattern and Search display options in the Clip Editor display settings
are independent and should not be grayed out since those options
remain relevant even with path display turned off.

Alternative solution were propoesed in D11630 and D11715
but each of those patches had downsides.
This solution is the simplest and does not break muscle memory.

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

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

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

diff --git a/release/scripts/startup/bl_ui/space_clip.py b/release/scripts/startup/bl_ui/space_clip.py
index ca7f9cdc100..afbc3abf302 100644
--- a/release/scripts/startup/bl_ui/space_clip.py
+++ b/release/scripts/startup/bl_ui/space_clip.py
@@ -72,8 +72,9 @@ class CLIP_PT_marker_display(Panel):
         col.prop(view, "show_marker_pattern", text="Pattern")
         col.prop(view, "show_marker_search", text="Search")
 
-        col.active = view.show_track_path
         col.prop(view, "show_track_path", text="Path")
+        col = col.column()
+        col.active = view.show_track_path
         col.prop(view, "path_length", text="Length")
 
         col = row.column()



More information about the Bf-blender-cvs mailing list