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 b9a659e77397d191ed913939b0bcb816d86378c3..98f364904f4fb0a7ef6cb5f68c0573a4da10e819 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()
             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
 
 
         return hooke