[Bf-blender-cvs] [845e2ed3a28] master: Cleanup: Use const for smoot scrolling function
Julian Eisel
noreply at git.blender.org
Mon Apr 25 18:15:32 CEST 2022
Commit: 845e2ed3a282913cd9d37207a313627275acc158
Author: Julian Eisel
Date: Mon Apr 25 18:15:14 2022 +0200
Branches: master
https://developer.blender.org/rB845e2ed3a282913cd9d37207a313627275acc158
Cleanup: Use const for smoot scrolling function
===================================================================
M source/blender/editors/include/UI_view2d.h
M source/blender/editors/interface/view2d_ops.cc
===================================================================
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);
More information about the Bf-blender-cvs
mailing list