Skip to content

Commit f07e7e0

Browse files
Fix copyWorkplane (#1770)
* Fix copyWorkplane * Back to T --------- Co-authored-by: AU <adam-urbanczyk@users.noreply.github.com>
1 parent f754469 commit f07e7e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cadquery/cq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ def copyWorkplane(self, obj: T) -> T:
664664
:type obj: a CQ object
665665
:returns: a CQ object with obj's workplane
666666
"""
667-
out = obj.__class__(obj.plane)
667+
out = copy(obj)
668668
out.parent = self
669669
out.ctx = self.ctx
670670
return out

0 commit comments

Comments
 (0)