forked from bartvdbraak/blender
Cycles: Fix crashes when loading cache created with pre-leaf split builds
This commit is contained in:
parent
2e91bcfb9d
commit
d6b28bbb1d
@ -105,7 +105,7 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
if(!size)
|
||||
if((size == 0) || (size % sizeof(T)) != 0)
|
||||
return false;
|
||||
|
||||
data.resize(size/sizeof(T));
|
||||
|
Loading…
Reference in New Issue
Block a user