forked from bartvdbraak/blender
Fix [#36827] 2.69 bug with smoke domain, particle emitter and a force field causes a crash
fuel array might be null!
This commit is contained in:
parent
25509ba8af
commit
71958f0052
@ -2409,7 +2409,7 @@ static void update_effectors(Scene *scene, Object *ob, SmokeDomainSettings *sds,
|
|||||||
float voxelCenter[3] = {0, 0, 0}, vel[3] = {0, 0, 0}, retvel[3] = {0, 0, 0};
|
float voxelCenter[3] = {0, 0, 0}, vel[3] = {0, 0, 0}, retvel[3] = {0, 0, 0};
|
||||||
unsigned int index = smoke_get_index(x, sds->res[0], y, sds->res[1], z);
|
unsigned int index = smoke_get_index(x, sds->res[0], y, sds->res[1], z);
|
||||||
|
|
||||||
if ((MAX2(density[index], fuel[index]) < FLT_EPSILON) || obstacle[index])
|
if (((fuel ? MAX2(density[index], fuel[index]) : density[index]) < FLT_EPSILON) || obstacle[index])
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
vel[0] = velocity_x[index];
|
vel[0] = velocity_x[index];
|
||||||
|
Loading…
Reference in New Issue
Block a user