Merge branch 'blender-v3.5-release'

This commit is contained in:
Sergey Sharybin
2023-03-10 17:59:02 +01:00

View File

@@ -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);
}