diff options
author | Lukas Tönne <lukas.toenne@gmail.com> | 2014-11-07 13:43:25 +0300 |
---|---|---|
committer | Lukas Tönne <lukas.toenne@gmail.com> | 2015-01-20 11:30:06 +0300 |
commit | 7740b1671cf2bc6ed24c1d3479cbc08b2d8cbe5e (patch) | |
tree | af02e74a968a56c31d648d8cea0a86868c8ae593 /source/blender/editors/physics/particle_edit.c | |
parent | aa16b5c222fffe024d50ce685e92791adc1b6ecd (diff) |
Pampering the stupid MSVC compiler again, it fails to build valid C code.
Diffstat (limited to 'source/blender/editors/physics/particle_edit.c')
-rw-r--r-- | source/blender/editors/physics/particle_edit.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c index 2c3280a3659..3d979562434 100644 --- a/source/blender/editors/physics/particle_edit.c +++ b/source/blender/editors/physics/particle_edit.c @@ -4086,7 +4086,10 @@ static bool shape_cut_test_point(PEData *data, ParticleCacheKey *key) { BVHTreeFromMesh *shape_bvh = &data->shape_bvh; const float dir[3] = {1.0f, 0.0f, 0.0f}; - PointInsideBVH userdata = { data->shape_bvh, 0 }; + PointInsideBVH userdata; + + userdata.bvhdata = data->shape_bvh; + userdata.num_hits = 0; BLI_bvhtree_ray_cast_all(shape_bvh->tree, key->co, dir, 0.0f, point_inside_bvh_cb, &userdata); |