Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Bakker <jeroen@blender.org>2021-03-19 17:40:36 +0300
committerJeroen Bakker <jeroen@blender.org>2021-03-19 19:11:47 +0300
commit260e50ed82ce015224c796a6354d2b4b18422b6f (patch)
treea0e7164d1693feafc58795fe3de5c2fc0b3764b4 /source/blender/compositor/operations/COM_SunBeamsOperation.cc
parentc905dd24b694eee0aa29fc95abd50cec62930c23 (diff)
Cleanup: Use ref to read from encapsuled data.
MemoryBuffer->getRect was returning a ptr.
Diffstat (limited to 'source/blender/compositor/operations/COM_SunBeamsOperation.cc')
-rw-r--r--source/blender/compositor/operations/COM_SunBeamsOperation.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/compositor/operations/COM_SunBeamsOperation.cc b/source/blender/compositor/operations/COM_SunBeamsOperation.cc
index af5cdeba547..23bf5897297 100644
--- a/source/blender/compositor/operations/COM_SunBeamsOperation.cc
+++ b/source/blender/compositor/operations/COM_SunBeamsOperation.cc
@@ -156,7 +156,7 @@ template<int fxu, int fxv, int fyu, int fyv> struct BufferLineAccumulator {
float dist_min,
float dist_max)
{
- rcti rect = *input->getRect();
+ const rcti &rect = input->get_rect();
int buffer_width = input->getWidth();
int x, y, num;
float v, dv;