[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [55179] trunk/blender/source/blender/ blenkernel/intern/smoke.c: Fix [#34561]: Possible smoke crash if smoke flow had lower density than adaptive domain "threshold".
Miika Hamalainen
miika.hamalainen at kolumbus.fi
Sun Mar 10 20:12:40 CET 2013
Revision: 55179
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=55179
Author: miikah
Date: 2013-03-10 19:12:40 +0000 (Sun, 10 Mar 2013)
Log Message:
-----------
Fix [#34561]: Possible smoke crash if smoke flow had lower density than adaptive domain "threshold".
Modified Paths:
--------------
trunk/blender/source/blender/blenkernel/intern/smoke.c
Modified: trunk/blender/source/blender/blenkernel/intern/smoke.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/smoke.c 2013-03-10 19:10:20 UTC (rev 55178)
+++ trunk/blender/source/blender/blenkernel/intern/smoke.c 2013-03-10 19:12:40 UTC (rev 55179)
@@ -1776,6 +1776,8 @@
dy = gy - sds->res_min[1];
dz = gz - sds->res_min[2];
d_index = smoke_get_index(dx, sds->res[0], dy, sds->res[1], dz);
+ /* make sure emission cell is inside the new domain boundary */
+ if (dx < 0 || dy < 0 || dz < 0 || dx >= sds->res[0] || dy >= sds->res[1] || dz >= sds->res[2]) continue;
if (sfs->type == MOD_SMOKE_FLOW_TYPE_OUTFLOW) { // outflow
apply_outflow_fields(d_index, density, heat, fuel, react, color_r, color_g, color_b);
More information about the Bf-blender-cvs
mailing list