mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 18:16:40 +00:00
fixed issue in add_ports mutating object's matrix
inherently modifying ports positions in some cases
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user