[Bf-blender-cvs] [8b38096f082] temp-3d-texturing-brush-b: Clear flags after flush.
Jeroen Bakker
noreply at git.blender.org
Wed Mar 16 14:26:51 CET 2022
Commit: 8b38096f082c36137c3f562e27ccdfd55ff04786
Author: Jeroen Bakker
Date: Wed Mar 16 14:26:39 2022 +0100
Branches: temp-3d-texturing-brush-b
https://developer.blender.org/rB8b38096f082c36137c3f562e27ccdfd55ff04786
Clear flags after flush.
===================================================================
M source/blender/editors/sculpt_paint/sculpt_texture_paint_d.cc
M source/blender/editors/sculpt_paint/sculpt_texture_paint_intern.hh
===================================================================
diff --git a/source/blender/editors/sculpt_paint/sculpt_texture_paint_d.cc b/source/blender/editors/sculpt_paint/sculpt_texture_paint_d.cc
index 3287d549a0b..6ce135bf02c 100644
--- a/source/blender/editors/sculpt_paint/sculpt_texture_paint_d.cc
+++ b/source/blender/editors/sculpt_paint/sculpt_texture_paint_d.cc
@@ -471,9 +471,9 @@ void SCULPT_flush_texture_paint(Object *ob)
}
data->mark_region(*image_data.image, image_tile, *image_buffer);
- data->flags.dirty = false;
BKE_image_release_ibuf(image, image_buffer, image_lock);
}
+ data->flags.dirty = false;
}
}
diff --git a/source/blender/editors/sculpt_paint/sculpt_texture_paint_intern.hh b/source/blender/editors/sculpt_paint/sculpt_texture_paint_intern.hh
index 41934241fbc..5c80fa6759c 100644
--- a/source/blender/editors/sculpt_paint/sculpt_texture_paint_intern.hh
+++ b/source/blender/editors/sculpt_paint/sculpt_texture_paint_intern.hh
@@ -160,6 +160,7 @@ struct TileData {
BKE_image_partial_update_mark_region(
&image, image_tile.image_tile, &image_buffer, &dirty_region);
BLI_rcti_init_minmax(&dirty_region);
+ flags.dirty = false;
}
};
struct NodeData {
More information about the Bf-blender-cvs
mailing list