Rename operator

This commit is contained in:
Gorgious
2022-01-23 23:35:35 +01:00
parent cc790c0a09
commit 26db0d60c1
3 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ classes = [
operator.AddIfcFile, operator.AddIfcFile,
operator.RemoveIfcFile, operator.RemoveIfcFile,
operator.ConfigureVisibility, operator.ConfigureVisibility,
operator.BIM_OT_show_attribute_documentation, operator.BIM_OT_show_ifc_documentation,
operator.BIM_OT_open_webbrowser, operator.BIM_OT_open_webbrowser,
prop.StrProperty, prop.StrProperty,
prop.ObjProperty, prop.ObjProperty,
+1 -2
View File
@@ -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 = layout.operator(f"{copy_operator}", text="", icon="COPYDOWN")
op.name = attribute.name op.name = attribute.name
if info_mode: 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()}" 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 "This is a usecase"
yield "You are supposed to use this class in this situation" yield "You are supposed to use this class in this situation"
yield "Or that situation" yield "Or that situation"
yield "Otherwise you'll be in trouble !!"
def export_attributes(props, callback=None): def export_attributes(props, callback=None):
+2 -2
View File
@@ -376,8 +376,8 @@ class BIM_OT_open_webbrowser(bpy.types.Operator):
return {"FINISHED"} return {"FINISHED"}
class BIM_OT_show_attribute_documentation(bpy.types.Operator): class BIM_OT_show_ifc_documentation(bpy.types.Operator):
bl_idname = "bim.show_attribute_documentation" bl_idname = "bim.show_ifc_documentation"
bl_label = "" bl_label = ""
path: bpy.props.StringProperty() path: bpy.props.StringProperty()