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:
-rw-r--r--source/blender/imbuf/intern/imageprocess.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/imbuf/intern/imageprocess.c b/source/blender/imbuf/intern/imageprocess.c
index c08b2c4d9ce..d3f75c9d64a 100644
--- a/source/blender/imbuf/intern/imageprocess.c
+++ b/source/blender/imbuf/intern/imageprocess.c
@@ -105,8 +105,8 @@ void bicubic_interpolation(ImBuf *in, ImBuf *out, float x, float y, int xout, in
if (in == NULL) return;
if (in->rect == NULL && in->rect_float == NULL) return;
- do_rect= (in->rect != NULL);
- do_float= (in->rect_float != NULL);
+ do_rect= (out->rect != NULL);
+ do_float= (out->rect_float != NULL);
i= (int)floor(x);
j= (int)floor(y);
@@ -170,8 +170,8 @@ void bilinear_interpolation(ImBuf *in, ImBuf *out, float u, float v, int xout, i
if (in==NULL) return;
if (in->rect==NULL && in->rect_float==NULL) return;
- do_rect= (in->rect != NULL);
- do_float= (in->rect_float != NULL);
+ do_rect= (out->rect != NULL);
+ do_float= (out->rect_float != NULL);
x1= (int)floor(u);
x2= (int)ceil(u);
@@ -246,8 +246,8 @@ void neareast_interpolation(ImBuf *in, ImBuf *out, float u, float v,int xout, in
if (in==NULL) return;
if (in->rect==NULL && in->rect_float==NULL) return;
- do_rect= (in->rect != NULL);
- do_float= (in->rect_float != NULL);
+ do_rect= (out->rect != NULL);
+ do_float= (out->rect_float != NULL);
x1= (int)(u);
y1= (int)(v);