[Bf-blender-cvs] [f6e2c9bc97d] blender-v3.1-release: Image editor: not updating after image operation.
Jeroen Bakker
noreply at git.blender.org
Mon Mar 28 16:26:58 CEST 2022
Commit: f6e2c9bc97d297dab2b8926fae1689ca1807bb7c
Author: Jeroen Bakker
Date: Fri Mar 25 16:30:10 2022 +0100
Branches: blender-v3.1-release
https://developer.blender.org/rBf6e2c9bc97d297dab2b8926fae1689ca1807bb7c
Image editor: not updating after image operation.
Fixes T96324, T96312, T96323
===================================================================
M source/blender/editors/space_image/image_ops.c
===================================================================
diff --git a/source/blender/editors/space_image/image_ops.c b/source/blender/editors/space_image/image_ops.c
index b1ca8505b8a..64a10ddf767 100644
--- a/source/blender/editors/space_image/image_ops.c
+++ b/source/blender/editors/space_image/image_ops.c
@@ -2795,8 +2795,7 @@ static int image_flip_exec(bContext *C, wmOperator *op)
ED_image_undo_push_end();
- /* force GPU re-upload, all image is invalid. */
- BKE_image_free_gputextures(ima);
+ BKE_image_partial_update_mark_full_update(ima);
WM_event_add_notifier(C, NC_IMAGE | NA_EDITED, ima);
@@ -2915,8 +2914,7 @@ static int image_invert_exec(bContext *C, wmOperator *op)
ED_image_undo_push_end();
- /* Force GPU re-upload, all image is invalid. */
- BKE_image_free_gputextures(ima);
+ BKE_image_partial_update_mark_full_update(ima);
WM_event_add_notifier(C, NC_IMAGE | NA_EDITED, ima);
@@ -3006,8 +3004,7 @@ static int image_scale_exec(bContext *C, wmOperator *op)
ED_image_undo_push_end();
- /* Force GPU re-upload, all image is invalid. */
- BKE_image_free_gputextures(ima);
+ BKE_image_partial_update_mark_full_update(ima);
DEG_id_tag_update(&ima->id, 0);
WM_event_add_notifier(C, NC_IMAGE | NA_EDITED, ima);
More information about the Bf-blender-cvs
mailing list