mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 06:21:40 +00:00
Minor fix.
This commit is contained in:
@@ -243,7 +243,7 @@ class EnableEditingUnit(bpy.types.Operator):
|
|||||||
return {"FINISHED"}
|
return {"FINISHED"}
|
||||||
|
|
||||||
def import_attributes(self, name, prop, data, context):
|
def import_attributes(self, name, prop, data, context):
|
||||||
if name == "Dimensions":
|
if name == "Dimensions" and data["type"] != "IfcSIUnit":
|
||||||
new = context.scene.BIMUnitProperties.unit_attributes.add()
|
new = context.scene.BIMUnitProperties.unit_attributes.add()
|
||||||
new.name = name
|
new.name = name
|
||||||
new.is_null = data[name] is None
|
new.is_null = data[name] is None
|
||||||
|
|||||||
Reference in New Issue
Block a user