Fix #129069: Drag Dot and Anchored paint brush modes don't clear mesh
Introduced in d282b1735e
The two stroke types need to have the mix_colors StrokeCache variable
reset in between daubs to prevent extra data from accumulating when
applying colors.
Pull Request: https://projects.blender.org/blender/blender/pulls/129084
This commit is contained in:
@@ -4946,7 +4946,11 @@ static void restore_from_undo_step_if_necessary(const Depsgraph &depsgraph,
|
||||
undo::restore_from_undo_step(depsgraph, sd, ob);
|
||||
|
||||
if (ss.cache) {
|
||||
/* Temporary data within the StrokeCache that is usually cleared at the end of the stroke
|
||||
* needs to be invalidated here so that the brushes do not accumulate and apply extra data.
|
||||
* See #129069. */
|
||||
ss.cache->layer_displacement_factor = {};
|
||||
ss.cache->paint_brush.mix_colors = {};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user