Set Curve._hooke after joining engine in HookeRunner (see f2bdd7aa2269)
authorW. Trevor King <wking@drexel.edu>
Thu, 19 Aug 2010 19:13:06 +0000 (15:13 -0400)
committerW. Trevor King <wking@drexel.edu>
Thu, 19 Aug 2010 19:13:06 +0000 (15:13 -0400)
hooke/hooke.py

index b9a659e..98f3649 100644 (file)
@@ -206,6 +206,9 @@ class HookeRunner (object):
             hooke = command_to_ui.get(block=True)
             log.debug('cleanup got %s instance' % type(hooke))
         command.join()
+        for playlist in hooke.playlists:  # Curve._hooke is not pickled.
+            for curve in playlist:
+                curve.set_hooke(hooke)
         return hooke