Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Bakker <jbakker>2022-03-08 12:38:13 +0300
committerJeroen Bakker <jeroen@blender.org>2022-03-08 12:38:38 +0300
commit1d902a6367d1d18670ed75e3508cd0db00021350 (patch)
tree87fa018297a8216c1f03af0d0e484f32c5b9d7ef
parent2ddb53de5403fb02e4de053084b2d00b2372a122 (diff)
Fix T96213: Crash when texture painting across multiple materials.
Issue only happens in release builds on windows. That said it was an actual error in the code. This class is compiled inline in release builds. When updating multiple textures it would reuse the same memory to collect the changes. When the previous loaded tilenumber was exactly the same but from a different image the tile buffer wasn't loaded. Reviewed By: sergey Maniphest Tasks: T96213 Differential Revision: https://developer.blender.org/D14274
-rw-r--r--source/blender/blenkernel/BKE_image_partial_update.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_image_partial_update.hh b/source/blender/blenkernel/BKE_image_partial_update.hh
index ca7c4f40593..b00ec98353c 100644
--- a/source/blender/blenkernel/BKE_image_partial_update.hh
+++ b/source/blender/blenkernel/BKE_image_partial_update.hh
@@ -227,7 +227,7 @@ template<typename TileData = NoTileData> struct PartialUpdateChecker {
ePartialUpdateCollectResult result_code;
private:
- TileNumber last_tile_number;
+ TileNumber last_tile_number = 0;
public:
CollectResult(PartialUpdateChecker<TileData> *checker, ePartialUpdateCollectResult result_code)