From 7e8dd767b084576c537f3a3bc007457919be6e30 Mon Sep 17 00:00:00 2001 From: hiaselhans Date: Fri, 23 Jun 2023 10:44:00 +0200 Subject: [PATCH] fix Wire.offset_2d inheritance bug --- src/build123d/topology.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/build123d/topology.py b/src/build123d/topology.py index 02f45a3..8e7e18d 100644 --- a/src/build123d/topology.py +++ b/src/build123d/topology.py @@ -6065,9 +6065,9 @@ class Wire(Shape, Mixin1D): obj = downcast(offset.Shape()) if isinstance(obj, TopoDS_Compound): - return_value = [self.__class__(el.wrapped) for el in Compound(obj)] + return_value = [Wire(el.wrapped) for el in Compound(obj)] else: - return_value = [self.__class__(obj)] + return_value = [Wire(obj)] return return_value