mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
ifc array modifier: bugfix, prevent divider from being zero.
This commit is contained in:
committed by
Dion Moult
parent
2cd7e737cd
commit
0c85e26950
@@ -420,7 +420,7 @@ class Model(blenderbim.core.tool.Model):
|
||||
children_elements = []
|
||||
children_objs = []
|
||||
if array['dimension_input_type'] == "Total":
|
||||
divider = array["count"] -1
|
||||
divider = 1 if ((array["count"] - 1) == 0) else (array["count"] - 1)
|
||||
base_offset = Vector([array["x"] / divider, array["y"] / divider, array["z"] / divider]) * unit_scale
|
||||
else:
|
||||
base_offset = Vector([array["x"], array["y"], array["z"]]) * unit_scale
|
||||
|
||||
Reference in New Issue
Block a user