Fix T48236: OpenVDB smoke cache glitches out with smokeless flames.
authorKévin Dietrich <kevin.dietrich@mailoo.org>
Fri, 22 Apr 2016 09:46:02 +0000 (11:46 +0200)
committerKévin Dietrich <kevin.dietrich@mailoo.org>
Fri, 22 Apr 2016 09:46:02 +0000 (11:46 +0200)
commita9729e6d75c74f48c6135df710f117435e7ff2f3
tree8f7623ac04d1142fccf89ebb06049ae207a76841
parent87dcee0c0c33ab2f2a8d22e0d0b53f0289ef7a46
Fix T48236: OpenVDB smoke cache glitches out with smokeless flames.

Issue was that before writing to disk grids are clipped against the
density field's tree to optimize for memory/disk space, which in the
case of simulations with no density field results in all grids having
empty trees.

For now avoid clipping against empty grids, but perhaps in the future it
can be interresting to have some UI parameters to let the user choose
the grid used for clipping.
intern/openvdb/intern/openvdb_dense_convert.cc
intern/openvdb/intern/openvdb_dense_convert.h