Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2016-05-10 09:36:46 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-05-10 09:47:57 +0300
commit401e7108075c46808bcc5e008e11767dcd09c04e (patch)
tree39c157151b0e12a23491c9f393d44607f7338a7a /source/blender/editors/armature/editarmature_sketch.c
parentce65fae8f32c058ef50eb1a9a0a82472c4a68040 (diff)
Correct armature-sketch snap context use
Use scene snap mode. Also allow passing NULL ray-depth which falls back to BVH_RAYCAST_DIST_MAX.
Diffstat (limited to 'source/blender/editors/armature/editarmature_sketch.c')
-rw-r--r--source/blender/editors/armature/editarmature_sketch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/armature/editarmature_sketch.c b/source/blender/editors/armature/editarmature_sketch.c
index 7401a213496..508bbca53ca 100644
--- a/source/blender/editors/armature/editarmature_sketch.c
+++ b/source/blender/editors/armature/editarmature_sketch.c
@@ -1092,13 +1092,13 @@ static int sk_getStrokeSnapPoint(bContext *C, SK_Point *pt, SK_Sketch *sketch, S
CTX_data_main(C), CTX_data_scene(C), 0,
CTX_wm_region(C), CTX_wm_view3d(C));
- found = ED_transform_snap_object_project_view3d_mixed(
+ found = ED_transform_snap_object_project_view3d(
snap_context,
&(const struct SnapObjectParams){
.snap_select = SNAP_NOT_SELECTED,
- .snap_to_flag = SCE_SELECT_FACE,
+ .snap_to = ts->snap_mode,
},
- mval, &dist_px, true,
+ mval, &dist_px, NULL,
vec, no);
ED_transform_snap_object_context_destroy(snap_context);