[Bf-blender-cvs] [a74cd170300] temp-pbvh-split: Fix: Hide empty panel in curves sculpt mode tool settings

Hans Goudey noreply at git.blender.org
Fri Jun 3 01:16:30 CEST 2022


Commit: a74cd170300b3c97a64a395406c07c21f368bd12
Author: Hans Goudey
Date:   Wed May 11 12:10:00 2022 +0200
Branches: temp-pbvh-split
https://developer.blender.org/rBa74cd170300b3c97a64a395406c07c21f368bd12

Fix: Hide empty panel in curves sculpt mode tool settings

This panel is empty after rB5b24291be1e0

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

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 698f0dadc33..3e1754fd908 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -391,6 +391,11 @@ class VIEW3D_PT_tools_brush_settings_advanced(Panel, View3DPaintBrushPanel):
     bl_options = {'DEFAULT_CLOSED'}
     bl_ui_units_x = 14
 
+    @classmethod
+    def poll(cls, context):
+        mode = cls.get_brush_mode(context)
+        return mode is not None and mode != 'SCULPT_CURVES'
+
     def draw(self, context):
         layout = self.layout



More information about the Bf-blender-cvs mailing list