Fix wrong name for QuadriFlow undo step
This commit is contained in:
parent
8d4460b6c4
commit
d124545013
@ -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__ */
|
||||
|
@ -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) {
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user