Fix for [#24299] Changing Curves on rendered Pass scewes pass up seriously ;-)

* The number of pass channels wasn't taken properly into account when applying curves.
This commit is contained in:
Janne Karhu 2010-10-19 11:51:31 +00:00
parent 20c920e954
commit 5f2764d849

@ -869,7 +869,7 @@ void curvemapping_do_ibuf(CurveMapping *cumap, ImBuf *ibuf)
if(ibuf->channels)
stride= ibuf->channels;
for(pixel= ibuf->x*ibuf->y; pixel>0; pixel--, pix_in+=stride, pix_out+=4) {
for(pixel= ibuf->x*ibuf->y; pixel>0; pixel--, pix_in+=stride, pix_out+=stride) {
if(stride<3) {
col[0]= curvemap_evaluateF(cumap->cm, *pix_in);