diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-04-29 13:48:49 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-04-29 13:48:49 +0300 |
commit | d6b28bbb1d61f059ec28156fb275393ee3389d57 (patch) | |
tree | 439212468f0503ebee464b04bcb7a61256db99c6 /intern/cycles/util | |
parent | 2e91bcfb9d5384bf14c5f405998aa8637b0fc918 (diff) |
Cycles: Fix crashes when loading cache created with pre-leaf split builds
Diffstat (limited to 'intern/cycles/util')
-rw-r--r-- | intern/cycles/util/util_cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/util/util_cache.h b/intern/cycles/util/util_cache.h index 9d001a6f1ff..343fa36817d 100644 --- a/intern/cycles/util/util_cache.h +++ b/intern/cycles/util/util_cache.h @@ -105,7 +105,7 @@ public: return false; } - if(!size) + if((size == 0) || (size % sizeof(T)) != 0) return false; data.resize(size/sizeof(T)); |