Display buffer should be marked as invalid when setting pixels from python

This commit is contained in:
Sergey Sharybin 2012-10-23 09:59:04 +00:00
parent 0c1b6ac3b3
commit 2f82e7f808

@ -366,7 +366,7 @@ static void rna_Image_pixels_set(PointerRNA *ptr, const float *values)
((unsigned char *)ibuf->rect)[i] = FTOCHAR(values[i]);
}
ibuf->userflags |= IB_BITMAPDIRTY;
ibuf->userflags |= IB_BITMAPDIRTY | IB_DISPLAY_BUFFER_INVALID;
}
BKE_image_release_ibuf(ima, lock);