fixed issue in add_ports mutating object's matrix

inherently modifying ports positions in some cases
This commit is contained in:
Andrej730
2023-11-08 16:49:31 +05:00
parent d1a7b99eda
commit 11ed8cc787
+2 -2
View File
@@ -50,9 +50,9 @@ class System(blenderbim.core.tool.System):
length = bbox["min_z"] if tool.Cad.is_x(bbox["max_z"], 0) else bbox["max_z"]
ports = []
if add_start_port:
ports.append(add_port(mep_element, obj.matrix_world @ Matrix()))
ports.append(add_port(mep_element, obj.matrix_world))
if add_end_port:
m = obj.matrix_world
m = obj.matrix_world.copy()
if end_port_pos:
m.translation = end_port_pos
else: