Blender Git Commit Log

Git Commits -> Revision 0e5e53c

Revision 0e5e53c by Alexander Gavrilov (master)
August 20, 2016, 09:13 (GMT)
Fix crash in OpenVDB highres smoke cache when seeking to frame 0.

This code obviously should also use the cache_fields flag variable,
like the code for reading the lowres data in the same function.
This is because fluid_fields actually represents the old state before
smoke was reallocated to match cache_fields read from the file, and if
it has some fields enabled that aren't allocated any more, it crashes.

This also fixes a reverse glitch: when a file was loaded with
the current frame in the middle of a baked smoke+fire simulation,
smoke appeared immediately, but the fire didn't until the frame
was changed. The reason is the same: after file load no fields
are initially allocated and thus fluid_fields is 0.

Commit Details:

Full Hash: 0e5e53c651effb6d33871f4a386c1b17c98aa9a1
Parent Commit: 36ab737
Lines Changed: +2, -2

1 Modified Path:

/source/blender/blenkernel/intern/pointcache.c (+2, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021