Commit: 2214eae4d7fba1d48457202da44fbd22704f912e
Author: Kévin Dietrich
Date:   Sun Jun 7 01:33:24 2015 +0200
Branches: openvdb
https://developer.blender.org/rB2214eae4d7fba1d48457202da44fbd22704f912e

Fix for recent clip change: ensure fluid matrices are computed for the
export.

===================================================================

M       source/blender/blenkernel/intern/smoke.c

===================================================================

diff --git a/source/blender/blenkernel/intern/smoke.c 
b/source/blender/blenkernel/intern/smoke.c
index 7bec692..ba3880c 100644
--- a/source/blender/blenkernel/intern/smoke.c
+++ b/source/blender/blenkernel/intern/smoke.c
@@ -3148,6 +3148,8 @@ static void OpenVDB_export_smoke(SmokeDomainSettings 
*sds, struct OpenVDBWriter
        int fluid_fields = smoke_get_data_flags(sds);
        struct OpenVDBFloatGrid *clip_grid = NULL;
 
+       compute_fluid_matrices(sds);
+
        OpenVDBWriter_add_meta_int(writer, "fluid_fields", fluid_fields);
 
        if (sds->wt) {
@@ -3177,7 +3179,6 @@ static void OpenVDB_export_smoke(SmokeDomainSettings 
*sds, struct OpenVDBWriter
                float dt, dx, *dens, *react, *fuel, *flame, *heat, *heatold, 
*vx, *vy, *vz, *r, *g, *b;
                unsigned char *obstacles;
 
-               compute_fluid_matrices(sds);
                smoke_export(sds->fluid, &dt, &dx, &dens, &react, &flame, 
&fuel, &heat,
                             &heatold, &vx, &vy, &vz, &r, &g, &b, &obstacles);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to