fluid cache need a +1 offset, their frame 0 is blender frame 1 (fun stuff)
authorMartin Poirier <theeth@yahoo.com>
Sat, 7 Nov 2009 17:47:54 +0000 (17:47 +0000)
committerMartin Poirier <theeth@yahoo.com>
Sat, 7 Nov 2009 17:47:54 +0000 (17:47 +0000)
release/scripts/io/netrender/client.py

index 52643af7d73b96d7702c91e45fb7b1e7b1a7a9cf..9cb176972e60d7df2833899aac71cc10248d5766 100644 (file)
@@ -34,7 +34,9 @@ def addFluidFiles(job, path):
                        match = pattern.match(fluid_file)
                        
                        if match:
                        match = pattern.match(fluid_file)
                        
                        if match:
-                               current_frame = int(match.groups()[1])
+                               # fluid frames starts at 0, which explains the +1
+                               # This is stupid
+                               current_frame = int(match.groups()[1]) + 1 
                                job.addFile(path + fluid_file, current_frame, current_frame)
 
 def addPointCache(job, ob, point_cache, default_path):
                                job.addFile(path + fluid_file, current_frame, current_frame)
 
 def addPointCache(job, ob, point_cache, default_path):