From 4a4eed7eb6568232cf7daa1630b1bbcebed4cca5 Mon Sep 17 00:00:00 2001 From: mozman Date: Sun, 10 Mar 2024 16:03:38 +0100 Subject: [PATCH] refactor chained() function --- src/ezdxf/select.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ezdxf/select.py b/src/ezdxf/select.py index 099f5c655..938e0cd04 100644 --- a/src/ezdxf/select.py +++ b/src/ezdxf/select.py @@ -362,10 +362,10 @@ def get_bbox_2d(entity: DXFEntity) -> BoundingBox2d: for entity in entities: if entity in selected: continue - current_bbox = get_bbox_2d(entity) + entity_bbox = get_bbox_2d(entity) for selected_bbox in selected.values(): - if current_bbox.has_overlap(selected_bbox): - selected[entity] = current_bbox + if entity_bbox.has_overlap(selected_bbox): + selected[entity] = entity_bbox restart = True break