From: W. Trevor King Date: Sat, 14 Aug 2010 13:19:59 +0000 (-0400) Subject: Fix p name collision bug in plugin.playlist.LoadCommand._run X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b0be6d6f75dac4a3f26f5ce975bdd12ef0112822;p=hooke.git Fix p name collision bug in plugin.playlist.LoadCommand._run --- diff --git a/hooke/plugin/playlist.py b/hooke/plugin/playlist.py index da16dfc..69cc562 100644 --- a/hooke/plugin/playlist.py +++ b/hooke/plugin/playlist.py @@ -247,7 +247,7 @@ Drivers for loading curves. def _run(self, hooke, inqueue, outqueue, params): p = FilePlaylist(drivers=params['drivers'], path=params['input']) p.load(hooke=hooke) - playlist_names = [p.name for p in hooke.playlists] + playlist_names = [playlist.name for playlist in hooke.playlists] if p.name not in playlist_names: params['output playlist'] = p.name # HACK: override input name. How to tell if it is callback-generated? self._set_playlist(hooke, params, p)