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 a120aba710ec8fc69487cc5bf942c6bc0490e13b..41132a106c48bbc80774bb2d850cf8c742922108 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: