bends - consider profile dimensions searching for compatible fitting

So basically now it won't reuse a bend fitting created for the same profile but with different dimension.
This commit is contained in:
Andrej730
2023-09-13 16:30:01 +05:00
parent 37eb1751b4
commit 4b48b30c3b
2 changed files with 2 additions and 0 deletions
@@ -1121,6 +1121,7 @@ class MEPAddBend(bpy.types.Operator, tool.Ifc.Operator):
"end_length": self.end_length / si_conversion,
"radius": self.radius / si_conversion,
"angle": degrees(angle),
"main_profile_dimension": profile_dim[lateral_axis] / si_conversion,
}
# find the compatible fitting type
fitting_data = MEPGenerator().get_compatible_fitting_type(
@@ -1454,5 +1454,6 @@ class ShapeBuilder:
"lateral_axis": lateral_axis,
"lateral_sign": lateral_sign,
"flip_z_axis": flip_z_axis,
"main_profile_dimension": profile_dim[lateral_axis],
}
return rep, bend_data