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
This commit is contained in:
parent
2ddb53de54
commit
1d902a6367
Notes:
blender-bot
2023-02-14 06:00:44 +01:00
Referenced by issue #96213, Crash when texture painting across multiple materials
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue