diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-01-23 04:13:48 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-01-23 04:14:26 +0300 |
commit | 1443235aa4e876152940a2b0c07054179487c129 (patch) | |
tree | 755a6e2e5d67cbbc7befb4db8a70de2a95dfcca9 /source/blender/editors/space_view3d/view3d_draw.c | |
parent | bf7e4067663cec0a3b4d3194e89a28aa62b39773 (diff) |
Cleanup: sync w/ blender2.8 branch
Also make some args const
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_draw.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_draw.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c index 1bf33441169..6d22f958a2f 100644 --- a/source/blender/editors/space_view3d/view3d_draw.c +++ b/source/blender/editors/space_view3d/view3d_draw.c @@ -3584,14 +3584,16 @@ void ED_scene_draw_fps(Scene *scene, const rcti *rect) #endif } -static bool view3d_main_region_do_render_draw(Scene *scene) +static bool view3d_main_region_do_render_draw(const Scene *scene) { RenderEngineType *type = RE_engines_find(scene->r.engine); return (type && type->view_update && type->view_draw); } -bool ED_view3d_calc_render_border(Scene *scene, View3D *v3d, ARegion *ar, rcti *rect) +bool ED_view3d_calc_render_border( + const Scene *scene, const View3D *v3d, const ARegion *ar, + rcti *rect) { RegionView3D *rv3d = ar->regiondata; rctf viewborder; |