mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
black .
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user