Merge pull request #262 from hiaselhans/offset2d

fix Wire.offset_2d inheritance bug
This commit is contained in:
gumyr 2023-06-24 13:34:48 -04:00 committed by GitHub
commit ccc1437fc9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6071,9 +6071,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