mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-07 04:46:25 +00:00
@@ -444,8 +444,11 @@ class Model(blenderbim.core.tool.Model):
|
|||||||
)
|
)
|
||||||
|
|
||||||
new_matrix = obj.matrix_world.copy()
|
new_matrix = obj.matrix_world.copy()
|
||||||
current_obj_offset = obj.matrix_world @ offset if array["use_local_space"] else offset
|
if array["use_local_space"]:
|
||||||
new_matrix.col[3] = (obj.matrix_world.col[3].to_3d() + current_obj_offset).to_4d()
|
current_obj_translation = obj.matrix_world @ offset
|
||||||
|
else:
|
||||||
|
current_obj_translation = obj.matrix_world.col[3].to_3d() + offset
|
||||||
|
new_matrix.col[3] = current_obj_translation.to_4d()
|
||||||
child_obj.matrix_world = new_matrix
|
child_obj.matrix_world = new_matrix
|
||||||
children_objs.append(child_obj)
|
children_objs.append(child_obj)
|
||||||
children_elements.append(child_element)
|
children_elements.append(child_element)
|
||||||
|
|||||||
Reference in New Issue
Block a user