Stay on top of Curve.set_hooke() so we can run CommandStacks.
authorW. Trevor King <wking@drexel.edu>
Sun, 22 Aug 2010 05:13:43 +0000 (01:13 -0400)
committerW. Trevor King <wking@drexel.edu>
Sun, 22 Aug 2010 05:13:43 +0000 (01:13 -0400)
hooke/engine.py
hooke/plugin/playlist.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()
index 36993017a4344113c9a61c6261c190eef021ffe7..086fa971e5155c42647033cb54da500d0097a156 100644 (file)
@@ -250,7 +250,7 @@ Drivers for loading curves.
             help=self.__doc__, plugin=plugin)
 
     def _run(self, hooke, inqueue, outqueue, params):
-        p = load(path=params['input'], drivers=params['drivers'])
+        p = load(path=params['input'], drivers=params['drivers'], hooke=hooke)
         self._set_playlist(hooke, params, p)
        outqueue.put(p)