mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 02:58:02 +00:00
fix custom offset unit scale when loading from pset.
This commit is contained in:
@@ -822,7 +822,7 @@ class Model(bonsai.core.tool.Model):
|
|||||||
pset = ifcopenshell.util.element.get_pset(element, "BBIM_MaterialLayer")
|
pset = ifcopenshell.util.element.get_pset(element, "BBIM_MaterialLayer")
|
||||||
if pset and pset.get("UseCustomOffset", False):
|
if pset and pset.get("UseCustomOffset", False):
|
||||||
# Load from pset
|
# Load from pset
|
||||||
custom_offset = pset.get("CustomOffset", 0.0)
|
custom_offset = pset.get("CustomOffset", 0.0) * unit_scale
|
||||||
usage_type = tool.Model.get_usage_type(element)
|
usage_type = tool.Model.get_usage_type(element)
|
||||||
|
|
||||||
if usage_type == "LAYER2":
|
if usage_type == "LAYER2":
|
||||||
|
|||||||
Reference in New Issue
Block a user