Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2020-03-30 10:35:01 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2020-04-14 10:46:17 +0300
commitb2c2d7b7f13a0c033853dcc87b49dbda4ba737af (patch)
tree50b69a60ea5c1ab3c1018f8a79cfd10af3e6b257 /source/blender/editors/include/ED_sculpt.h
parent9e0b44aae941d0d175a072c12423b0db094c4c3e (diff)
Sculpt: Implement undo of Apply Base during sculpt session
The idea is to push both base mesh geometry and PBVH coordinates so it is possible to undo everything without loosing data which was not flushed from sculpt session to base mesh. It is possible do memory optimization to avoid push custom data layers which are not touched by operator, but before doing that better to ensure this is a correct and working approach. Differential Revision: https://developer.blender.org/D7381
Diffstat (limited to 'source/blender/editors/include/ED_sculpt.h')
-rw-r--r--source/blender/editors/include/ED_sculpt.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_sculpt.h b/source/blender/editors/include/ED_sculpt.h
index 26871cf8dd0..e61c7be5216 100644
--- a/source/blender/editors/include/ED_sculpt.h
+++ b/source/blender/editors/include/ED_sculpt.h
@@ -54,6 +54,11 @@ void ED_sculpt_undosys_type(struct UndoType *ut);
void ED_sculpt_undo_geometry_begin(struct Object *ob, const char *name);
void ED_sculpt_undo_geometry_end(struct Object *ob);
+/* Undo for changes happening on a base mesh for multires sculpting.
+ * if there is no multires sculpt active regular undo is used. */
+void ED_sculpt_undo_push_multires_mesh_begin(struct bContext *C, const char *str);
+void ED_sculpt_undo_push_multires_mesh_end(struct bContext *C, const char *str);
+
#ifdef __cplusplus
}
#endif