Commit: 251f1e084b8f7f0b741c2aabf7ca0d62a721f352
Author: Lukas Tönne
Date:   Fri Dec 5 16:37:25 2014 +0100
Branches: hair_immediate_fixes
https://developer.blender.org/rB251f1e084b8f7f0b741c2aabf7ca0d62a721f352

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 
*/

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to