Fix: own wrong path to image paint tool settings in recent commit
authorWilliam Reynish <billrey@me.com>
Tue, 19 Mar 2019 17:37:51 +0000 (18:37 +0100)
committerWilliam Reynish <billrey@me.com>
Tue, 19 Mar 2019 17:37:51 +0000 (18:37 +0100)
release/scripts/startup/bl_ui/space_image.py

index 2da618c..7702338 100644 (file)
@@ -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'