mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-01 20:49:44 +00:00
Fix door appearing on wrong RL when not on ground floor. See #2529.
This commit is contained in:
@@ -71,12 +71,12 @@ class AddFilledOpening(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
|
|
||||||
new_matrix = voided_obj.matrix_world.copy()
|
new_matrix = voided_obj.matrix_world.copy()
|
||||||
new_matrix.col[3] = tool.Cad.point_on_edge(target, axis).to_4d()
|
new_matrix.col[3] = tool.Cad.point_on_edge(target, axis).to_4d()
|
||||||
if not filling.is_a("IfcDoor"):
|
|
||||||
container = ifcopenshell.util.element.get_container(element)
|
if filling.is_a("IfcDoor"):
|
||||||
if container:
|
new_matrix[2][3] = voided_obj.matrix_world[2][3]
|
||||||
container_obj = tool.Ifc.get_object(container)
|
else:
|
||||||
if container_obj:
|
new_matrix[2][3] = voided_obj.matrix_world[2][3] + (props.rl2 * unit_scale)
|
||||||
new_matrix[2][3] = container_obj.matrix_world[2][3] + (props.rl2 * unit_scale)
|
|
||||||
filling_obj.matrix_world = new_matrix
|
filling_obj.matrix_world = new_matrix
|
||||||
bpy.context.view_layer.update()
|
bpy.context.view_layer.update()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user