[Bf-blender-cvs] [9b8a064] compositor-2016: Workaround MSVC error

Campbell Barton noreply at git.blender.org
Wed Jun 8 21:52:49 CEST 2016


Commit: 9b8a064eb4ede22371dd6772b354b021a05334e9
Author: Campbell Barton
Date:   Sat Jun 4 01:00:40 2016 +1000
Branches: compositor-2016
https://developer.blender.org/rB9b8a064eb4ede22371dd6772b354b021a05334e9

Workaround MSVC error

===================================================================

M	source/blender/editors/space_view3d/view3d_walk.c

===================================================================

diff --git a/source/blender/editors/space_view3d/view3d_walk.c b/source/blender/editors/space_view3d/view3d_walk.c
index 6859ffe..384da27 100644
--- a/source/blender/editors/space_view3d/view3d_walk.c
+++ b/source/blender/editors/space_view3d/view3d_walk.c
@@ -49,6 +49,7 @@
 
 #include "ED_screen.h"
 #include "ED_space_api.h"
+#include "ED_transform.h"
 #include "ED_transform_snap_object_context.h"
 
 #include "PIL_time.h" /* smoothview */
@@ -424,7 +425,9 @@ static bool walk_floor_distance_get(
 
 	ret = ED_transform_snap_object_project_ray(
 	        walk->snap_context,
-	        &(const struct SnapObjectParams){},
+	        &(const struct SnapObjectParams){
+	            .snap_select = SNAP_ALL,
+	        },
 	        ray_start, ray_normal, r_distance,
 	        r_location, r_normal_dummy);
 
@@ -456,7 +459,9 @@ static bool walk_ray_cast(
 
 	ret = ED_transform_snap_object_project_ray(
 	        walk->snap_context,
-	        &(const struct SnapObjectParams){},
+	        &(const struct SnapObjectParams){
+	            .snap_select = SNAP_ALL,
+	        },
 	        ray_start, ray_normal, NULL,
 	        r_location, r_normal);




More information about the Bf-blender-cvs mailing list