diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-09-20 05:46:04 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-09-20 05:51:16 +0300 |
commit | 9dac8633d6dd7616cfd1beca6079156e95b0f15b (patch) | |
tree | d2bac0731c919d839b56abad1d7183732c3bae29 /source/blender/editors/curve | |
parent | 66720194840b11bdfb0f26e4191d1f214cdc2e8e (diff) | |
parent | 1cc9022eb51b73abc84d79366a9cf54a561c7520 (diff) |
Merge branch 'master' into blender2.8
Diffstat (limited to 'source/blender/editors/curve')
-rw-r--r-- | source/blender/editors/curve/editcurve_paint.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/source/blender/editors/curve/editcurve_paint.c b/source/blender/editors/curve/editcurve_paint.c index b249af1c8b6..ad128b91c5a 100644 --- a/source/blender/editors/curve/editcurve_paint.c +++ b/source/blender/editors/curve/editcurve_paint.c @@ -202,12 +202,7 @@ static bool stroke_elem_project( /* project to 'location_world' */ if (cdd->project.use_plane) { /* get the view vector to 'location' */ - float ray_origin[3], ray_direction[3]; - ED_view3d_win_to_ray(ar, mval_fl, ray_origin, ray_direction); - - float lambda; - if (isect_ray_plane_v3(ray_origin, ray_direction, cdd->project.plane, &lambda, true)) { - madd_v3_v3v3fl(r_location_world, ray_origin, ray_direction, lambda); + if (ED_view3d_win_to_3d_on_plane(ar, cdd->project.plane, mval_fl, true, r_location_world)) { if (r_normal_world) { zero_v3(r_normal_world); } |