mirror of
https://github.com/gumyr/build123d.git
synced 2026-01-09 02:33:04 -08:00
Merge pull request #262 from hiaselhans/offset2d
fix Wire.offset_2d inheritance bug
This commit is contained in:
commit
ccc1437fc9
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue