diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-06-30 09:37:14 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-06-30 09:42:19 +0300 |
commit | 501d2443d03cce18985fab3ffad5d23238748f3e (patch) | |
tree | 1d127d4e4c6d82fc85feedc9826dd5619174e346 /source/blender/render/intern | |
parent | df9597cfba78deb40009553ab9dcf09c21edd434 (diff) |
Cleanup: use const arguments for accessor functions
Diffstat (limited to 'source/blender/render/intern')
-rw-r--r-- | source/blender/render/intern/engine.c | 4 | ||||
-rw-r--r-- | source/blender/render/intern/render_result.c | 4 | ||||
-rw-r--r-- | source/blender/render/intern/render_result.h | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/render/intern/engine.c b/source/blender/render/intern/engine.c index 7316afc448e..db2458a636b 100644 --- a/source/blender/render/intern/engine.c +++ b/source/blender/render/intern/engine.c @@ -735,9 +735,9 @@ void RE_bake_engine_set_engine_parameters(Render *re, Main *bmain, Scene *scene) render_copy_renderdata(&re->r, &scene->r); } -bool RE_bake_has_engine(Render *re) +bool RE_bake_has_engine(const Render *re) { - RenderEngineType *type = RE_engines_find(re->r.engine); + const RenderEngineType *type = RE_engines_find(re->r.engine); return (type->bake != NULL); } diff --git a/source/blender/render/intern/render_result.c b/source/blender/render/intern/render_result.c index 83ed302ea46..70bd4f92512 100644 --- a/source/blender/render/intern/render_result.c +++ b/source/blender/render/intern/render_result.c @@ -804,9 +804,9 @@ void render_result_views_new(RenderResult *rr, const RenderData *rd) } } -bool render_result_has_views(RenderResult *rr) +bool render_result_has_views(const RenderResult *rr) { - RenderView *rv = rr->views.first; + const RenderView *rv = rr->views.first; return (rv && (rv->next || rv->name[0])); } diff --git a/source/blender/render/intern/render_result.h b/source/blender/render/intern/render_result.h index 67edd075e24..7732c113700 100644 --- a/source/blender/render/intern/render_result.h +++ b/source/blender/render/intern/render_result.h @@ -127,7 +127,7 @@ void render_result_rect_get_pixels(struct RenderResult *rr, void render_result_views_shallowcopy(struct RenderResult *dst, struct RenderResult *src); void render_result_views_shallowdelete(struct RenderResult *rr); -bool render_result_has_views(struct RenderResult *rr); +bool render_result_has_views(const struct RenderResult *rr); #define FOREACH_VIEW_LAYER_TO_RENDER_BEGIN(re_, iter_) \ { \ |