diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-02-17 02:27:50 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-02-17 06:50:08 +0300 |
commit | 62592af84349629bccaa1c81df7965f4deb39fd4 (patch) | |
tree | 7b5250be247c4f884d8b4985351de545bbf9b80e /source/blender/draw | |
parent | 99b4c856ef9140e96eb48c95cff04031ae36eeef (diff) |
Cleanup: pass scene as const
Diffstat (limited to 'source/blender/draw')
-rw-r--r-- | source/blender/draw/intern/draw_cache_impl_mesh.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_mesh.c b/source/blender/draw/intern/draw_cache_impl_mesh.c index 1a1caa2943a..79fce24076e 100644 --- a/source/blender/draw/intern/draw_cache_impl_mesh.c +++ b/source/blender/draw/intern/draw_cache_impl_mesh.c @@ -1522,8 +1522,7 @@ void DRW_mesh_batch_cache_create_requested(struct TaskGraph *task_graph, } /* Meh loose Scene const correctness here. */ - const bool use_subsurf_fdots = scene ? BKE_modifiers_uses_subsurf_facedots((Scene *)scene, ob) : - false; + const bool use_subsurf_fdots = scene ? BKE_modifiers_uses_subsurf_facedots(scene, ob) : false; if (do_uvcage) { mesh_buffer_cache_create_requested(task_graph, |