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:
authorMatheus de Sousa Faria <MatheusFaria>2017-07-25 01:29:25 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2017-07-25 01:48:34 +0300
commitb7fb00f51271a7bf37f34a679d2523f7be86256b (patch)
tree43ed1cb66b4af3dbf8d45ffbd2c33a8aab73afa5
parent7260a693e1318e72dda2f6fb57b874419ea2b1ea (diff)
Fix compositor Glare node with Simpler Star resulting in uneven rays.
Reviewed By: brecht Differential Revision: https://developer.blender.org/D1867
-rw-r--r--source/blender/compositor/operations/COM_GlareSimpleStarOperation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/compositor/operations/COM_GlareSimpleStarOperation.cpp b/source/blender/compositor/operations/COM_GlareSimpleStarOperation.cpp
index 57aa3a1bac2..94f407dad86 100644
--- a/source/blender/compositor/operations/COM_GlareSimpleStarOperation.cpp
+++ b/source/blender/compositor/operations/COM_GlareSimpleStarOperation.cpp
@@ -65,10 +65,10 @@ void GlareSimpleStarOperation::generateGlare(float *data, MemoryBuffer *inputTil
}
}
// // B
- for (y = tbuf1->getHeight() - 1 && (!breaked); y >= 0; y--) {
+ for (y = this->getHeight() - 1; y >= 0 && (!breaked); y--) {
ym = y - i;
yp = y + i;
- for (x = tbuf1->getWidth() - 1; x >= 0; x--) {
+ for (x = this->getWidth() - 1; x >= 0; x--) {
xm = x - i;
xp = x + i;
tbuf1->read(c, x, y);