[Bf-blender-cvs] [f0e32ef4ff3] blender-v3.1-release: Fix T95699: Compostior backdrop not updated.

Jeroen Bakker noreply at git.blender.org
Mon Feb 14 09:30:19 CET 2022


Commit: f0e32ef4ff34f8cf8ff85706fd863a858f5849b6
Author: Jeroen Bakker
Date:   Mon Feb 14 09:20:59 2022 +0100
Branches: blender-v3.1-release
https://developer.blender.org/rBf0e32ef4ff34f8cf8ff85706fd863a858f5849b6

Fix T95699: Compostior backdrop not updated.

The Viewer marked the gpu texture to be out of date. But it should have used
the mark_full_update as the gpu textures
are only used by the render/draw engines.

The image/node editor uses the image engine that have its own GPU textures.

===================================================================

M	source/blender/compositor/operations/COM_ViewerOperation.cc

===================================================================

diff --git a/source/blender/compositor/operations/COM_ViewerOperation.cc b/source/blender/compositor/operations/COM_ViewerOperation.cc
index 205596b46d1..bdaca44820d 100644
--- a/source/blender/compositor/operations/COM_ViewerOperation.cc
+++ b/source/blender/compositor/operations/COM_ViewerOperation.cc
@@ -215,7 +215,10 @@ void ViewerOperation::update_image(const rcti *rect)
                                     rect->ymin,
                                     rect->xmax,
                                     rect->ymax);
-  image_->gpuflag |= IMA_GPU_REFRESH;
+
+  /* This could be improved to use partial updates. For now disabled as the full frame compositor
+   * would not use partial frames anymore and the image engine requires more testing.*/
+  BKE_image_partial_update_mark_full_update(image_);
   this->update_draw();
 }



More information about the Bf-blender-cvs mailing list