Adjust playlist curve setup to load curves after YAML restore.
authorW. Trevor King <wking@drexel.edu>
Wed, 10 Nov 2010 18:10:42 +0000 (13:10 -0500)
committerW. Trevor King <wking@drexel.edu>
Wed, 10 Nov 2010 18:10:42 +0000 (13:10 -0500)
hooke/playlist.py

index a120aba..41132a1 100644 (file)
@@ -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: