poctools: fix how finalop= works

.. this makes Op() and Filleted() actually work
This commit is contained in:
Jeff Epler 2017-08-05 22:36:18 -05:00
parent 88ae51121d
commit 93c823fba2

View file

@ -117,9 +117,9 @@ def withhelper(newop, newobj=None, finalop=None):
try:
yield
finally:
if finalop: finalop()
obj = holdobj
op = holdop
if finalop: finalop(newobj)
do_op(newobj)
### Primitives