Stay on top of Curve.set_hooke() so we can run CommandStacks.
[hooke.git] / hooke / engine.py
index be4be5fecaf7b1024ca1d67d12bb7c9e327c5cc7..4687431356073c9d0c10c6a9f75dc42ea4db4708 100644 (file)
@@ -98,6 +98,9 @@ class CommandEngine (object):
         """
         log = logging.getLogger('hooke')
         log.debug('engine starting')
+        for playlist in hooke.playlists:  # Curve._hooke is not pickled.
+            for curve in playlist:
+                curve.set_hooke(hooke)
         while True:
             log.debug('engine waiting for command')
             msg = ui_to_command_queue.get()