Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Reynish <billrey@me.com>2019-03-19 20:37:51 +0300
committerWilliam Reynish <billrey@me.com>2019-03-19 20:37:51 +0300
commitb4a0dd1296dbcdd3759f8e03575a93e08f025fc1 (patch)
tree0cbd1c66c586bbf6a121cbf2eff3bd726278f55f
parent83fc8342d8271135d7ee0d0a380701cdfde3b20c (diff)
Fix: own wrong path to image paint tool settings in recent commit
-rw-r--r--release/scripts/startup/bl_ui/space_image.py4
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'