mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-06 07:51:47 +00:00
black .
This commit is contained in:
@@ -75,10 +75,14 @@ class BIM_UL_bsdd_dictionaries(UIList):
|
||||
props = context.scene.BIMBSDDProperties
|
||||
row = layout.row(align=True)
|
||||
if item.status != "Active":
|
||||
row.label(text=f"{item.name} ({item.organization_name_owner}) v{item.version} - {item.status}", icon="ERROR")
|
||||
row.label(
|
||||
text=f"{item.name} ({item.organization_name_owner}) v{item.version} - {item.status}", icon="ERROR"
|
||||
)
|
||||
else:
|
||||
row.label(text=f"{item.name} ({item.organization_name_owner}) v{item.version}")
|
||||
row.prop(item, "is_active", icon="CHECKBOX_HLT" if item.is_active else "CHECKBOX_DEHLT", text="", emboss=False)
|
||||
row.prop(
|
||||
item, "is_active", icon="CHECKBOX_HLT" if item.is_active else "CHECKBOX_DEHLT", text="", emboss=False
|
||||
)
|
||||
|
||||
|
||||
class BIM_UL_bsdd_classifications(UIList):
|
||||
|
||||
@@ -125,7 +125,9 @@ class AddClassificationFromBSDD(bpy.types.Operator, tool.Ifc.Operator):
|
||||
continue
|
||||
has_classification = False
|
||||
for element in tool.Ifc.get().by_type("IfcClassification"):
|
||||
if element.Name == dictionary["name"] or (tool.Classification.get_location(element) == dictionary["uri"]):
|
||||
if element.Name == dictionary["name"] or (
|
||||
tool.Classification.get_location(element) == dictionary["uri"]
|
||||
):
|
||||
self.report({"INFO"}, f"Classification '{dictionary['name']}' is already added to the project.")
|
||||
has_classification = True
|
||||
if has_classification:
|
||||
|
||||
@@ -217,8 +217,8 @@ class TemplateListItemSpy(PanelSpy):
|
||||
"",
|
||||
parent.spied_data["active_dataptr"],
|
||||
parent.spied_data["active_propname"],
|
||||
0, # Index?
|
||||
None
|
||||
0, # Index?
|
||||
None,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user