Fix compositor Glare node with Simpler Star resulting in uneven rays.

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D1867
This commit is contained in:
Matheus de Sousa Faria 2017-07-25 00:29:25 +02:00 committed by Brecht Van Lommel
parent 7260a693e1
commit b7fb00f512
1 changed files with 2 additions and 2 deletions

View File

@ -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);