diff options
-rw-r--r-- | source/blender/editors/include/UI_view2d.h | 2 | ||||
-rw-r--r-- | source/blender/editors/interface/view2d_ops.cc | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/editors/include/UI_view2d.h b/source/blender/editors/include/UI_view2d.h index 47c554f84e0..23dbd3ed36f 100644 --- a/source/blender/editors/include/UI_view2d.h +++ b/source/blender/editors/include/UI_view2d.h @@ -416,7 +416,7 @@ void ED_keymap_view2d(struct wmKeyConfig *keyconf); * Will start timer if appropriate. * the arguments are the desired situation. */ -void UI_view2d_smooth_view(struct bContext *C, +void UI_view2d_smooth_view(const struct bContext *C, struct ARegion *region, const struct rctf *cur, int smooth_viewtx); diff --git a/source/blender/editors/interface/view2d_ops.cc b/source/blender/editors/interface/view2d_ops.cc index 81c1cc79a0e..a4477c5271c 100644 --- a/source/blender/editors/interface/view2d_ops.cc +++ b/source/blender/editors/interface/view2d_ops.cc @@ -1546,7 +1546,10 @@ static float smooth_view_rect_to_fac(const rctf *rect_a, const rctf *rect_b) return min_ff(fac_max, 1.0f); } -void UI_view2d_smooth_view(bContext *C, ARegion *region, const rctf *cur, const int smooth_viewtx) +void UI_view2d_smooth_view(const bContext *C, + ARegion *region, + const rctf *cur, + const int smooth_viewtx) { wmWindowManager *wm = CTX_wm_manager(C); wmWindow *win = CTX_wm_window(C); |