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:
authorPhilipp Oeser <info@graphics-engineer.com>2020-06-25 15:37:22 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2020-07-07 11:38:56 +0300
commite233ee1c1fb167c69afb0c3f8d0c067bd67d2814 (patch)
tree43635d418a3dc3e2082c116af58fd6fc33030630 /release/scripts/startup/bl_ui/space_view3d_toolbar.py
parent19d4e265b655982945464a6bc24b093e86e9b84b (diff)
Fix T78186: Dyntopo panel error with tools that dont have a brush
Maniphest Tasks: T78186 Differential Revision: https://developer.blender.org/D8120
Diffstat (limited to 'release/scripts/startup/bl_ui/space_view3d_toolbar.py')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d_toolbar.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index 549b89938e0..f1358d4dd01 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -737,7 +737,8 @@ class VIEW3D_PT_sculpt_dyntopo(Panel, View3DPaintPanel):
@classmethod
def poll(cls, context):
- return (context.sculpt_object and context.tool_settings.sculpt)
+ paint_settings = cls.paint_settings(context)
+ return (context.sculpt_object and context.tool_settings.sculpt and paint_settings)
def draw_header(self, context):
is_popover = self.is_popover