[Bf-blender-cvs] [a5b72d5] temp_merge_gooseberry_hair: Pampering the stupid MSVC compiler again, it fails to build valid C code.
Lukas Tönne
noreply at git.blender.org
Mon Jan 19 20:50:46 CET 2015
Commit: a5b72d513601588a053c0fd76489e1f10f65c98e
Author: Lukas Tönne
Date: Fri Nov 7 11:43:25 2014 +0100
Branches: temp_merge_gooseberry_hair
https://developer.blender.org/rBa5b72d513601588a053c0fd76489e1f10f65c98e
Pampering the stupid MSVC compiler again, it fails to build valid C code.
===================================================================
M source/blender/editors/physics/particle_edit.c
===================================================================
diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c
index 2c3280a..3d97956 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);
More information about the Bf-blender-cvs
mailing list