diff options
author | Julian Eisel <julian@blender.org> | 2022-04-25 19:15:14 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2022-04-25 19:15:14 +0300 |
commit | 845e2ed3a282913cd9d37207a313627275acc158 (patch) | |
tree | b2d34486708e4d33fccc9c1e4d83bd1097b9d37f | |
parent | e99cb91530f37a2b026a6280112e627d7764d0bf (diff) |
Cleanup: Use const for smoot scrolling function
-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); |