Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Dietrich <kevin.dietrich@mailoo.org>2016-01-27 12:13:31 +0300
committerKévin Dietrich <kevin.dietrich@mailoo.org>2016-01-27 12:14:41 +0300
commitcbb52c903cd0e6915c4494913f15c1e8061a109a (patch)
treef4bb38c3671aa37e3b8250cb4ea5a33f1384270a /source/blender/blenkernel/intern/smoke.c
parent771f73b6bedbdd1c1e2993bd8d3680d53fa67b7c (diff)
Fix T47250: OpenVDB crash
Issue was that the domain matrix was not initialized properly on the first frame (in smokeModifier_init), which caused OpenVDB to throw an exception for trying to create a VDB grid with non-affine transform.
Diffstat (limited to 'source/blender/blenkernel/intern/smoke.c')
-rw-r--r--source/blender/blenkernel/intern/smoke.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/smoke.c b/source/blender/blenkernel/intern/smoke.c
index c7215cc7d4c..d20994a2e39 100644
--- a/source/blender/blenkernel/intern/smoke.c
+++ b/source/blender/blenkernel/intern/smoke.c
@@ -284,6 +284,7 @@ static int smokeModifier_init(SmokeModifierData *smd, Object *ob, Scene *scene,
add_v3_fl(sds->shift_f, 0.5f);
zero_v3(sds->prev_loc);
mul_m4_v3(ob->obmat, sds->prev_loc);
+ copy_m4_m4(sds->obmat, ob->obmat);
/* set resolutions */
if (smd->domain->flags & MOD_SMOKE_ADAPTIVE_DOMAIN) {