diff options
author | William Reynish <billrey@me.com> | 2019-03-19 20:37:51 +0300 |
---|---|---|
committer | William Reynish <billrey@me.com> | 2019-03-19 20:37:51 +0300 |
commit | b4a0dd1296dbcdd3759f8e03575a93e08f025fc1 (patch) | |
tree | 0cbd1c66c586bbf6a121cbf2eff3bd726278f55f /release/scripts/startup/bl_ui/space_image.py | |
parent | 83fc8342d8271135d7ee0d0a380701cdfde3b20c (diff) |
Fix: own wrong path to image paint tool settings in recent commit
Diffstat (limited to 'release/scripts/startup/bl_ui/space_image.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_image.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_image.py b/release/scripts/startup/bl_ui/space_image.py index 2da618c66cd..7702338a776 100644 --- a/release/scripts/startup/bl_ui/space_image.py +++ b/release/scripts/startup/bl_ui/space_image.py @@ -920,7 +920,7 @@ class IMAGE_PT_paint_gradient(Panel, ImagePaintPanel): return capabilities.has_color def draw_header(self, context): - settings = self.paint_settings(context) + settings = context.tool_settings.image_paint brush = settings.brush self.layout.prop(brush, "use_gradient", text="") @@ -944,7 +944,7 @@ class IMAGE_PT_paint_clone(Panel, ImagePaintPanel): @classmethod def poll(self, context): - settings = self.paint_settings(context) + settings = context.tool_settings.image_paint brush = settings.brush return brush.image_tool == 'CLONE' |