Fix for [#23732] Smoke / load external cache doesn't work

This commit is contained in:
Janne Karhu
2010-09-28 10:04:41 +00:00
parent 8df244f20d
commit 92fd0680cb

View File

@@ -2943,7 +2943,10 @@ void BKE_ptcache_update_info(PTCacheID *pid)
totframes++;
}
if(totframes && cache->totpoint)
/* smoke doesn't use frame 0 as info frame so can't check based on totpoint */
if(pid->type == PTCACHE_TYPE_SMOKE_DOMAIN && totframes)
sprintf(cache->info, "%i frames found!", totframes);
else if(totframes && cache->totpoint)
sprintf(cache->info, "%i points found!", cache->totpoint);
else
sprintf(cache->info, "No valid data to read!");