Fixed window units in bmesh (#2724)

This commit is contained in:
Andrej730
2023-01-26 14:42:35 +05:00
parent a701624d7b
commit b1dd20fef7
@@ -191,7 +191,9 @@ def create_bm_window_closed_profile(bm, size: Vector, thickness: Vector, positio
def update_window_modifier_bmesh(context):
obj = context.object
props = obj.BIMWindowProperties
si_conversion = 0.001 / ifcopenshell.util.unit.calculate_unit_scale(tool.Ifc.get())
# blender interprets all values as if they are in meters
# so no need to convert to blender scene units, just convert to meters
si_conversion = 0.001
panel_schema = DEFAULT_PANEL_SCHEMAS[props.window_type]
accumulated_height = [0] * len(panel_schema[0])
built_panels = []