Fix T95809: Compositor Node not directly updated in image editor.

Image wasn't tagged to be dirty.
This commit is contained in:
Jeroen Bakker 2022-02-18 08:11:51 +01:00
parent 6efdfeb886
commit 400e57b64a
Notes: blender-bot 2023-02-13 16:12:58 +01:00
Referenced by issue #95840, Composite output node does not update
Referenced by issue #95809, Image editor no longer reflecting changes of the node tree
1 changed files with 3 additions and 4 deletions

View File

@ -105,11 +105,10 @@ void CompositorOperation::deinit_execution()
re = nullptr;
}
Image *image = BKE_image_ensure_viewer(G.main, IMA_TYPE_R_RESULT, "Render Result");
BKE_image_partial_update_mark_full_update(image);
BLI_thread_lock(LOCK_DRAW_IMAGE);
BKE_image_signal(G.main,
BKE_image_ensure_viewer(G.main, IMA_TYPE_R_RESULT, "Render Result"),
nullptr,
IMA_SIGNAL_FREE);
BKE_image_signal(G.main, image, nullptr, IMA_SIGNAL_FREE);
BLI_thread_unlock(LOCK_DRAW_IMAGE);
}
else {