From: W. Trevor King Date: Wed, 10 Nov 2010 18:10:42 +0000 (-0500) Subject: Adjust playlist curve setup to load curves after YAML restore. X-Git-Url: http://git.tremily.us/?p=hooke.git;a=commitdiff_plain;h=634a188b5696a5357b02fd87a812b3960114e84e Adjust playlist curve setup to load curves after YAML restore. --- diff --git a/hooke/playlist.py b/hooke/playlist.py index a120aba..41132a1 100644 --- a/hooke/playlist.py +++ b/hooke/playlist.py @@ -194,7 +194,7 @@ class Playlist (NoteIndexList): self.append(curve) if curve.driver == None: c.identify(self.drivers) - if curve.data == None: + if curve.data == None or max([d.size for d in curve.data]) == 0: curve.load() self._loaded.append(curve) if len(self._loaded) > self._max_loaded: