[Bf-blender-cvs] [5c2bb6f93a5] sculpt-dev: Sculpt IPMask: Implement undo

Pablo Dobarro noreply at git.blender.org
Fri Feb 26 14:59:00 CET 2021


Commit: 5c2bb6f93a5d606739ab65b0efc398c0c2e8865c
Author: Pablo Dobarro
Date:   Fri Feb 26 00:14:11 2021 +0100
Branches: sculpt-dev
https://developer.blender.org/rB5c2bb6f93a5d606739ab65b0efc398c0c2e8865c

Sculpt IPMask: Implement undo

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

M	source/blender/editors/sculpt_paint/sculpt_filter_mask.c

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

diff --git a/source/blender/editors/sculpt_paint/sculpt_filter_mask.c b/source/blender/editors/sculpt_paint/sculpt_filter_mask.c
index 358f7129849..ce2619279a5 100644
--- a/source/blender/editors/sculpt_paint/sculpt_filter_mask.c
+++ b/source/blender/editors/sculpt_paint/sculpt_filter_mask.c
@@ -618,6 +618,9 @@ static int sculpt_ipmask_filter_invoke(bContext *C, wmOperator *op, const wmEven
   filter_cache->mask_filter_current_step = 0;
 
   BKE_pbvh_search_gather(ss->pbvh, NULL, NULL, &filter_cache->nodes, &filter_cache->totnode);
+  for (int i = 0; i < filter_cache->totnode; i++) {
+    SCULPT_undo_push_node(ob, filter_cache->nodes[i], SCULPT_UNDO_MASK);
+  }
 
   filter_cache->mask_delta_step = BLI_ghash_int_new("mask filter delta steps");



More information about the Bf-blender-cvs mailing list