mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
black .
This commit is contained in:
@@ -268,11 +268,11 @@ class ObjectMaterialData:
|
||||
else:
|
||||
material_id = item.Material.id()
|
||||
data = {
|
||||
"id": item.id(),
|
||||
"name": getattr(item, "Name", None) or "Unnamed",
|
||||
"id": item.id(),
|
||||
"name": getattr(item, "Name", None) or "Unnamed",
|
||||
"icon": icon,
|
||||
"material_id": material_id
|
||||
}
|
||||
"material_id": material_id,
|
||||
}
|
||||
if item.is_a("IfcMaterialProfile") and not item.Name:
|
||||
if item.Profile:
|
||||
data["name"] = item.Profile.ProfileName or "Unnamed"
|
||||
|
||||
@@ -364,7 +364,7 @@ class BIM_PT_object_material(Panel):
|
||||
|
||||
for set_item in ObjectMaterialData.data["set_items"]:
|
||||
material_name = set_item["material"]
|
||||
material_id = set_item['material_id']
|
||||
material_id = set_item["material_id"]
|
||||
if ObjectMaterialData.data["material_class"] == "IfcMaterialList":
|
||||
row = box.row()
|
||||
row.label(text="IfcMaterial", icon="LAYER_ACTIVE")
|
||||
@@ -379,8 +379,8 @@ class BIM_PT_object_material(Panel):
|
||||
self.layerset_bounds(box, active_object, location="Bottom_Interior")
|
||||
|
||||
def layerset_bounds(self, box, obj, location="Top_Exterior"):
|
||||
set_usage = ObjectMaterialData.data.get('set_usage', {})
|
||||
layer_set_direction = set_usage.get('layer_set_direction')
|
||||
set_usage = ObjectMaterialData.data.get("set_usage", {})
|
||||
layer_set_direction = set_usage.get("layer_set_direction")
|
||||
if layer_set_direction:
|
||||
if location == "Top_Exterior":
|
||||
if layer_set_direction == "AXIS3":
|
||||
|
||||
@@ -383,6 +383,7 @@ class BIM_PT_object_qtos(Panel):
|
||||
row = layout.row()
|
||||
row.operator("bim.perform_quantity_take_off")
|
||||
|
||||
|
||||
class BIM_PT_material_psets(Panel):
|
||||
bl_label = "Material Property Sets"
|
||||
bl_idname = "BIM_PT_material_psets"
|
||||
|
||||
Reference in New Issue
Block a user