From 23d4d05a9ecb4b2d2c0e96154bbcbcf49b85e6b1 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 22 Aug 2010 01:13:43 -0400 Subject: [PATCH] Stay on top of Curve.set_hooke() so we can run CommandStacks. --- hooke/engine.py | 3 +++ hooke/plugin/playlist.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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) -- 2.26.2