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 be4be5f..4687431 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 3699301..086fa97 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)