This commit is contained in:
Andrej730
2025-03-14 16:33:28 +05:00
parent 069b630b16
commit 10ecac33b8
3 changed files with 3 additions and 4 deletions
+2 -2
View File
@@ -1252,8 +1252,8 @@ class MEPAddBend(bpy.types.Operator, tool.Ifc.Operator):
# add ports and connect them
ports = tool.System.get_ports(tool.Ifc.get_entity(fitting_obj))
start_co = ifcopenshell.util.placement.get_local_placement(start_port.ObjectPlacement)[:,3]
port0_co = ifcopenshell.util.placement.get_local_placement(ports[0].ObjectPlacement)[:,3]
start_co = ifcopenshell.util.placement.get_local_placement(start_port.ObjectPlacement)[:, 3]
port0_co = ifcopenshell.util.placement.get_local_placement(ports[0].ObjectPlacement)[:, 3]
# We cannot use start_port_match because tool.System.get_ports is unordered
if not np.allclose(start_co, port0_co):
start_port, end_port = end_port, start_port
@@ -850,7 +850,6 @@ class PolylineOperator:
tool.Polyline.remove_last_polyline_point()
tool.Blender.update_viewport()
def handle_snap_selection(self, context: bpy.types.Context, event: bpy.types.Event) -> None:
if not self.tool_state.is_input_on and event.value == "PRESS" and event.type == "M":
self.snapping_points = tool.Snap.modify_snapping_point_selection(
@@ -2718,7 +2718,7 @@ class MeasureFaceAreaTool(bpy.types.Operator, PolylineOperator):
custom_instructions = {
"Select Face": {"icons": True, "keys": ["MOUSE_LMB"]},
"Deselect Face": {"icons": True, "keys": ["EVENT_SHIFT", "MOUSE_LMB"]}
"Deselect Face": {"icons": True, "keys": ["EVENT_SHIFT", "MOUSE_LMB"]},
}
custom_info = []
self.handle_instructions(context, custom_instructions, custom_info, overwrite=True)