Display buffer should be marked as invalid when setting pixels from python
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 23 Oct 2012 09:59:04 +0000 (09:59 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 23 Oct 2012 09:59:04 +0000 (09:59 +0000)
source/blender/makesrna/intern/rna_image.c

index a77e93f6a5694a40a81328694759b6b172236155..56150843273d4a3f2fbd705cb210209a29c3a5e0 100644 (file)
@@ -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);