[Bf-blender-cvs] [703c0802cd2] lineart-shadow: UI: Clip: Fix checkbox wrongly greying out entire column
Aaron Carlisle
noreply at git.blender.org
Tue Jul 13 10:45:58 CEST 2021
Commit: 703c0802cd22cffffe824ef93c20b95721f2903c
Author: Aaron Carlisle
Date: Fri Jul 9 19:23:08 2021 -0400
Branches: lineart-shadow
https://developer.blender.org/rB703c0802cd22cffffe824ef93c20b95721f2903c
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