Fix wrong name for QuadriFlow undo step
authorCampbell Barton <ideasman42@gmail.com>
Mon, 18 Nov 2019 11:42:10 +0000 (22:42 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 18 Nov 2019 11:43:30 +0000 (22:43 +1100)
source/blender/editors/include/ED_sculpt.h
source/blender/editors/object/object_remesh.c
source/blender/editors/sculpt_paint/sculpt_undo.c

index 0273c8c73ab829ff754fef5fdc48a8ed28f3d4d2..4a0ce7b0078989e6925075e5079b988a2eff93c5 100644 (file)
@@ -47,7 +47,7 @@ void ED_sculpt_end_transform(struct bContext *C);
 /* sculpt_undo.c */
 void ED_sculpt_undosys_type(struct UndoType *ut);
 
-void ED_sculpt_undo_geometry_begin(struct Object *ob);
+void ED_sculpt_undo_geometry_begin(struct Object *ob, const char *name);
 void ED_sculpt_undo_geometry_end(struct Object *ob);
 
 #endif /* __ED_SCULPT_H__ */
index d3dca03548f0e76203f09811211f2352e2079752..62e8d326c1ccf29dcd5356d837a08ddb6b7a7e5c 100644 (file)
@@ -114,7 +114,7 @@ static int voxel_remesh_exec(bContext *C, wmOperator *op)
   }
 
   if (ob->mode == OB_MODE_SCULPT) {
-    ED_sculpt_undo_geometry_begin(ob);
+    ED_sculpt_undo_geometry_begin(ob, op->type->name);
   }
 
   float isovalue = 0.0f;
@@ -421,7 +421,7 @@ static void quadriflow_start_job(void *customdata, short *stop, short *do_update
   new_mesh = remesh_symmetry_mirror(qj->owner, new_mesh, qj->symmetry_axes);
 
   if (ob->mode == OB_MODE_SCULPT) {
-    ED_sculpt_undo_geometry_begin(ob);
+    ED_sculpt_undo_geometry_begin(ob, "QuadriFlow Remesh");
   }
 
   if (qj->preserve_paint_mask) {
index 052f2bd03a479c342e5eb5d2b63105884240ed7c..fec3bd88f0bb8ae8a8a294fda55db979a4b0cb2e 100644 (file)
@@ -1279,9 +1279,9 @@ static void sculpt_undosys_step_free(UndoStep *us_p)
   sculpt_undo_free_list(&us->data.nodes);
 }
 
-void ED_sculpt_undo_geometry_begin(struct Object *ob)
+void ED_sculpt_undo_geometry_begin(struct Object *ob, const char *name)
 {
-  sculpt_undo_push_begin("voxel remesh");
+  sculpt_undo_push_begin(name);
   sculpt_undo_push_node(ob, NULL, SCULPT_UNDO_GEOMETRY);
 }