diff options
author | Thomas Dinges <blender@dingto.org> | 2014-02-25 00:13:05 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2014-02-25 00:13:30 +0400 |
commit | b5c50c02fa171c94f59469de93dd0f4dd0a72bbb (patch) | |
tree | 12795ecf95eab75511ca8e85918c7cc24f1d2389 /release/scripts/startup/bl_ui/space_image.py | |
parent | 97e9bb94888e902cf78063098d45ad175159f802 (diff) |
Paint UI: Don't hide the custom icon path, just grey out.
This is what we do with boolean and sub-settings. We usually hide it when the options depend on a menu-enum.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_image.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_image.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/release/scripts/startup/bl_ui/space_image.py b/release/scripts/startup/bl_ui/space_image.py index 3571759aa1f..fce924484b3 100644 --- a/release/scripts/startup/bl_ui/space_image.py +++ b/release/scripts/startup/bl_ui/space_image.py @@ -898,19 +898,19 @@ class IMAGE_PT_tools_brush_appearance(BrushButtonsPanel, Panel): layout.label(text="Brush Unset") return - col = layout.column() - col.prop(toolsettings, "show_brush") + col = layout.column(align=True) - col = col.column() - col.prop(brush, "cursor_color_add", text="") - col.active = toolsettings.show_brush + col.prop(toolsettings, "show_brush") + sub = col.column() + sub.active = toolsettings.show_brush + sub.prop(brush, "cursor_color_add", text="") - layout.separator() + col.separator() - col = layout.column(align=True) col.prop(brush, "use_custom_icon") - if brush.use_custom_icon: - col.prop(brush, "icon_filepath", text="") + sub = col.column() + sub.active = brush.use_custom_icon + sub.prop(brush, "icon_filepath", text="") class IMAGE_UV_sculpt_curve(Panel): |