forked from blender/blender
main sync #3
@ -654,11 +654,16 @@ static void rna_Image_pixels_set(PointerRNA *ptr, const float *values)
|
||||
}
|
||||
}
|
||||
|
||||
/* NOTE: Do update from the set() because typically pixels.foreach_set() is used to update
|
||||
* the values, and it does not invoke the update(). */
|
||||
|
||||
ibuf->userflags |= IB_DISPLAY_BUFFER_INVALID | IB_MIPMAP_INVALID;
|
||||
BKE_image_mark_dirty(ima, ibuf);
|
||||
if (!G.background) {
|
||||
BKE_image_free_gputextures(ima);
|
||||
}
|
||||
|
||||
BKE_image_partial_update_mark_full_update(ima);
|
||||
WM_main_add_notifier(NC_IMAGE | ND_DISPLAY, &ima->id);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user