diff options
Diffstat (limited to 'source/blender/editors/armature')
-rw-r--r-- | source/blender/editors/armature/editarmature_sketch.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/editors/armature/editarmature_sketch.c b/source/blender/editors/armature/editarmature_sketch.c index 7685829db9b..5530e293edd 100644 --- a/source/blender/editors/armature/editarmature_sketch.c +++ b/source/blender/editors/armature/editarmature_sketch.c @@ -975,19 +975,19 @@ static int sk_getStrokeSnapPoint(bContext *C, SK_Point *pt, SK_Sketch *sketch, S CTX_wm_region(C), CTX_wm_view3d(C)); float mvalf[2] = {UNPACK2(dd->mval)}; - float r_loc[3], dummy_no[3]; + float loc[3], dummy_no[3]; if (ts->snap_mode == SCE_SNAP_MODE_VOLUME) { float size; if (peelObjectsSnapContext( snap_context, mvalf, SNAP_ALL, (ts->snap_flag & SCE_SNAP_PEEL_OBJECT) != 0, - r_loc, dummy_no, &size)) + loc, dummy_no, &size)) { pt->type = dd->type; pt->mode = PT_SNAP; pt->size = size / 2; - copy_v3_v3(pt->p, r_loc); + copy_v3_v3(pt->p, loc); point_added = 1; } @@ -1022,11 +1022,11 @@ static int sk_getStrokeSnapPoint(bContext *C, SK_Point *pt, SK_Sketch *sketch, S .snap_to = ts->snap_mode, }, mvalf, &dist_px, NULL, - r_loc, dummy_no)) + loc, dummy_no)) { pt->type = dd->type; pt->mode = PT_SNAP; - copy_v3_v3(pt->p, r_loc); + copy_v3_v3(pt->p, loc); point_added = 1; } |