From: W. Trevor King Date: Sun, 22 Aug 2010 05:13:43 +0000 (-0400) Subject: Stay on top of Curve.set_hooke() so we can run CommandStacks. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=23d4d05a9ecb4b2d2c0e96154bbcbcf49b85e6b1;p=hooke.git Stay on top of Curve.set_hooke() so we can run CommandStacks. --- diff --git a/hooke/engine.py b/hooke/engine.py index be4be5f..4687431 100644 --- a/hooke/engine.py +++ b/hooke/engine.py @@ -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() diff --git a/hooke/plugin/playlist.py b/hooke/plugin/playlist.py index 3699301..086fa97 100644 --- a/hooke/plugin/playlist.py +++ b/hooke/plugin/playlist.py @@ -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)