[Bf-blender-cvs] [cbb52c9] master: Fix T47250: OpenVDB crash
Kévin Dietrich
noreply at git.blender.org
Wed Jan 27 10:15:48 CET 2016
Commit: cbb52c903cd0e6915c4494913f15c1e8061a109a
Author: Kévin Dietrich
Date: Wed Jan 27 10:13:31 2016 +0100
Branches: master
https://developer.blender.org/rBcbb52c903cd0e6915c4494913f15c1e8061a109a
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.
===================================================================
M source/blender/blenkernel/intern/smoke.c
===================================================================
diff --git a/source/blender/blenkernel/intern/smoke.c b/source/blender/blenkernel/intern/smoke.c
index c7215cc..d20994a 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) {
More information about the Bf-blender-cvs
mailing list