mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Rename operator
This commit is contained in:
@@ -87,7 +87,7 @@ classes = [
|
||||
operator.AddIfcFile,
|
||||
operator.RemoveIfcFile,
|
||||
operator.ConfigureVisibility,
|
||||
operator.BIM_OT_show_attribute_documentation,
|
||||
operator.BIM_OT_show_ifc_documentation,
|
||||
operator.BIM_OT_open_webbrowser,
|
||||
prop.StrProperty,
|
||||
prop.ObjProperty,
|
||||
|
||||
@@ -49,7 +49,7 @@ def draw_attribute(attribute, layout, copy_operator=None, info_mode=False):
|
||||
op = layout.operator(f"{copy_operator}", text="", icon="COPYDOWN")
|
||||
op.name = attribute.name
|
||||
if info_mode:
|
||||
info_op = layout.operator("bim.show_attribute_documentation", icon="INFO", text="")
|
||||
info_op = layout.operator("bim.show_ifc_documentation", icon="INFO", text="")
|
||||
info_op.path = f"{attribute.path_from_id()}"
|
||||
|
||||
|
||||
@@ -109,7 +109,6 @@ def get_ifc_class_usecase(class_name):
|
||||
yield "This is a usecase"
|
||||
yield "You are supposed to use this class in this situation"
|
||||
yield "Or that situation"
|
||||
yield "Otherwise you'll be in trouble !!"
|
||||
|
||||
|
||||
def export_attributes(props, callback=None):
|
||||
|
||||
@@ -376,8 +376,8 @@ class BIM_OT_open_webbrowser(bpy.types.Operator):
|
||||
return {"FINISHED"}
|
||||
|
||||
|
||||
class BIM_OT_show_attribute_documentation(bpy.types.Operator):
|
||||
bl_idname = "bim.show_attribute_documentation"
|
||||
class BIM_OT_show_ifc_documentation(bpy.types.Operator):
|
||||
bl_idname = "bim.show_ifc_documentation"
|
||||
bl_label = ""
|
||||
|
||||
path: bpy.props.StringProperty()
|
||||
|
||||
Reference in New Issue
Block a user