mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
Remove operator's name from set_tab tooltip #3704
This commit is contained in:
@@ -42,13 +42,15 @@ from math import radians
|
||||
|
||||
class SetTab(bpy.types.Operator):
|
||||
bl_idname = "bim.set_tab"
|
||||
bl_label = "Set Current Tab"
|
||||
bl_options = {"REGISTER", "UNDO"}
|
||||
# NOTE: bl_label is set to empty string intentionally
|
||||
# to avoid showing the operator's name in the tooltips, see #3704
|
||||
bl_label = ""
|
||||
bl_options = {"REGISTER", "UNDO", "HIDDEN"}
|
||||
tab: bpy.props.StringProperty()
|
||||
|
||||
@classmethod
|
||||
def description(cls, context, properties):
|
||||
return next((t[1] for t in blenderbim.bim.prop.get_tab(None, context) if t[0] == properties.tab), "")
|
||||
def description(cls, context, operator):
|
||||
return next((t[1] for t in blenderbim.bim.prop.get_tab(None, context) if t[0] == operator.tab), "")
|
||||
|
||||
def execute(self, context):
|
||||
if context.area.spaces.active.search_filter:
|
||||
|
||||
Reference in New Issue
Block a user