[Bf-blender-cvs] [8392874] hair_immediate_fixes: MSVC compiler cannot handle standard C code.
Lukas Tönne
noreply at git.blender.org
Sat Dec 27 11:32:48 CET 2014
Commit: 8392874f9d386cd37fe090add516f82eb028e589
Author: Lukas Tönne
Date: Fri Dec 5 16:37:25 2014 +0100
Branches: hair_immediate_fixes
https://developer.blender.org/rB8392874f9d386cd37fe090add516f82eb028e589
MSVC compiler cannot handle standard 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..98559bb 100644
--- a/source/blender/editors/physics/particle_edit.c
+++ b/source/blender/editors/physics/particle_edit.c
@@ -4086,8 +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);
/* for any point inside a watertight mesh the number of hits is uneven */
More information about the Bf-blender-cvs
mailing list