[Bf-extensions-cvs] [8abd97b6] master: Bool Tool: Remove help button

Mikhail Rachinskiy noreply at git.blender.org
Tue Sep 24 14:06:29 CEST 2019


Commit: 8abd97b6d1f1bee44efd5471f6361e90df54026e
Author: Mikhail Rachinskiy
Date:   Tue Sep 24 16:06:15 2019 +0400
Branches: master
https://developer.blender.org/rBA8abd97b6d1f1bee44efd5471f6361e90df54026e

Bool Tool: Remove help button

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

M	object_boolean_tools.py

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

diff --git a/object_boolean_tools.py b/object_boolean_tools.py
index 98913dd6..a9c74777 100644
--- a/object_boolean_tools.py
+++ b/object_boolean_tools.py
@@ -872,13 +872,8 @@ class VIEW3D_PT_booltool_tools(Panel):
     def poll(cls, context):
         return context.active_object is not None
 
-    def draw_header(self, context):
-        layout = self.layout
-        layout.operator("wm.booltool_help", text="", icon="QUESTION")
-
     def draw(self, context):
         layout = self.layout
-        obj = context.active_object
 
         col = layout.column(align=True)
         col.label(text="Auto Boolean")
@@ -917,7 +912,7 @@ class VIEW3D_PT_booltool_config(Panel):
     @classmethod
     def poll(cls, context):
         actObj = context.active_object
-        return isCanvas(actObj) or isBrush(actObj) #  or isPolyBrush(actObj)
+        return isCanvas(actObj) or isBrush(actObj)  # or isPolyBrush(actObj)
 
     def draw(self, context):
         layout = self.layout
@@ -1046,39 +1041,6 @@ class VIEW3D_PT_booltool_bviewer(Panel):
                 Dw.direction = "DOWN"
 
 
-# ------------------ BOOL TOOL Help ----------------------------
-
-
-class WM_OT_BoolTool_Help(Operator):
-    bl_idname = "wm.booltool_help"
-    bl_label = "Bool Tool Help"
-    bl_description = "Help - click to read basic information"
-
-    def draw(self, context):
-        layout = self.layout
-
-        layout.label(text="To use:")
-        layout.label(text="Select two or more objects,")
-        layout.label(text="choose one option from the panel")
-        layout.label(text="or from the Ctrl + Shift + B menu")
-
-        layout.separator()
-
-        layout.label(text="Auto Boolean:")
-        layout.label(text="Apply Boolean operation directly to mesh.")
-
-        layout.separator()
-
-        layout.label(text="Brush Boolean:")
-        layout.label(text="Create a Boolean brush modifier setup.")
-
-    def execute(self, context):
-        return {"FINISHED"}
-
-    def invoke(self, context, event):
-        return context.window_manager.invoke_popup(self, width=220)
-
-
 # ------------------ BOOL TOOL ADD-ON PREFERENCES ----------------------------
 
 
@@ -1166,7 +1128,6 @@ class PREFS_BoolTool_Props(AddonPreferences):
         layout.use_property_split = True
         layout.use_property_decorate = False
 
-
         col = layout.column()
         col.prop(self, "category")
         col.prop(self, "fast_transform")
@@ -1219,7 +1180,6 @@ classes = (
     BTool_EnableThisBrush,
     BTool_EnableFTransform,
     BTool_FastTransform,
-    WM_OT_BoolTool_Help,
 )



More information about the Bf-extensions-cvs mailing list