Image editor: not updating after image operation.

Fixes T96324, T96312, T96323
This commit is contained in:
Jeroen Bakker 2022-03-25 16:30:10 +01:00 committed by Philipp Oeser
parent 5eca3278c5
commit f6e2c9bc97
Notes: blender-bot 2023-02-14 09:21:21 +01:00
Referenced by issue #96323, Regression: Invert colour is not reflected in the image viewer until a UI change
Referenced by issue #96324, Regression: Resizing an image is not correctly reflected in the image editor until the UI is updated
Referenced by issue #96312, Regression: Image Editor Flip option isn't working
Referenced by issue #96241, 3.1: Potential candidates for corrective releases
1 changed files with 3 additions and 6 deletions

View File

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