[Bf-blender-cvs] [0218268546d] master: GP: Hide Options and Curves popovers for Fill brushes

Antonioya noreply at git.blender.org
Mon Jan 7 16:23:21 CET 2019


Commit: 0218268546d4ad93695288f47c8f8d1d4730c778
Author: Antonioya
Date:   Mon Jan 7 16:22:20 2019 +0100
Branches: master
https://developer.blender.org/rB0218268546d4ad93695288f47c8f8d1d4730c778

GP: Hide Options and Curves popovers for Fill brushes

===================================================================

M	release/scripts/startup/bl_ui/space_view3d_toolbar.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index 9c0e43fe0a0..302360386d5 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -1488,7 +1488,7 @@ class VIEW3D_PT_tools_grease_pencil_brush_option(View3DPanel, Panel):
     @classmethod
     def poll(cls, context):
         brush = context.tool_settings.gpencil_paint.brush
-        return brush is not None and brush.gpencil_tool != 'ERASE'
+        return brush is not None and brush.gpencil_tool not in {'ERASE', 'FILL'}
 
     def draw_header_preset(self, context):
         VIEW3D_PT_gpencil_brush_presets.draw_panel_header(self.layout)
@@ -1628,7 +1628,7 @@ class VIEW3D_PT_tools_grease_pencil_brushcurves(View3DPanel, Panel):
     @classmethod
     def poll(cls, context):
         brush = context.tool_settings.gpencil_paint.brush
-        return brush is not None and brush.gpencil_tool != 'ERASE'
+        return brush is not None and brush.gpencil_tool not in {'ERASE', 'FILL'}
 
     @staticmethod
     def draw(self, context):



More information about the Bf-blender-cvs mailing list