Bug fix for problem 2 in [#25973] Bake End Frame Not Configurable
authorJanne Karhu <jhkarh@gmail.com>
Fri, 11 Feb 2011 14:59:19 +0000 (14:59 +0000)
committerJanne Karhu <jhkarh@gmail.com>
Fri, 11 Feb 2011 14:59:19 +0000 (14:59 +0000)
* External caches didn't load for smoke straight away. Smoke caches store all necessary info in every file, so no need to try to look for an info file.

source/blender/blenkernel/intern/pointcache.c

index 65bf055886e18d2a77f755a8e7434fc90a5e098b..bd919d2166db751f052f3540ebdb92d872a2c244 100644 (file)
@@ -2929,8 +2929,10 @@ void BKE_ptcache_load_external(PTCacheID *pid)
                cache->endframe = end;
                cache->totpoint = 0;
 
+               if(pid->type == PTCACHE_TYPE_SMOKE_DOMAIN)
+                       ; /*necessary info in every file*/
                /* read totpoint from info file (frame 0) */
-               if(info) {
+               else if(info) {
                        pf= ptcache_file_open(pid, PTCACHE_FILE_READ, 0);
 
                        if(pf) {