diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-07-15 11:40:16 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-07-15 11:40:16 +0300 |
commit | dec59618b4b0e6f0472c37566c2f1f56b5ac2b7e (patch) | |
tree | ccb2c8a572bb3f2d9e29c532f508f3a136f02752 /source/blender/editors/space_view3d/view3d_snap.c | |
parent | e5e128e30ccad9f1048994ea2d59b24efad0f023 (diff) |
Correct error in snap commit
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_snap.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_snap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/view3d_snap.c b/source/blender/editors/space_view3d/view3d_snap.c index 638dd0451e8..5dd69cc66eb 100644 --- a/source/blender/editors/space_view3d/view3d_snap.c +++ b/source/blender/editors/space_view3d/view3d_snap.c @@ -44,6 +44,7 @@ #include "BKE_main.h" #include "BKE_mball.h" #include "BKE_object.h" +#include "BKE_report.h" #include "BKE_tracking.h" #include "WM_api.h" @@ -428,7 +429,7 @@ void VIEW3D_OT_snap_selected_to_cursor(wmOperatorType *ot) static int snap_selected_to_active_exec(bContext *C, wmOperator *op) { - const float snap_target_global[3]; + float snap_target_global[3]; if (snap_calc_active_center(C, false, snap_target_global) == false) { BKE_report(op->reports, RPT_ERROR, "No active element found!"); |