diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-05-14 02:09:09 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-05-14 02:10:57 +0400 |
commit | ea6620cb822ff1fa56c8916fe39b18f32484e512 (patch) | |
tree | 0a467abb5ee816657c1981e98fbd2f51f10ae686 /source/blender/editors/util/undo.c | |
parent | 5cc1e03540fbc68d3fec35af0fc3eeee8a00cf9a (diff) |
Fix T37796, Mesh lost after exiting sculpt mode and undoing.
Issue here is that upon entering sculpt mode, the mesh (and the object
mode) is stored in global undo. Now made the code similar to edit mode,
but since we don't really have any operator to push, this is just
ignored for now.
I have tried just disabling the sculpt toggle operator undo flag but
this didn't work due to the nature recursive of the operator calls
Diffstat (limited to 'source/blender/editors/util/undo.c')
-rw-r--r-- | source/blender/editors/util/undo.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/util/undo.c b/source/blender/editors/util/undo.c index 4d14323a20b..ee02e0c396a 100644 --- a/source/blender/editors/util/undo.c +++ b/source/blender/editors/util/undo.c @@ -105,6 +105,9 @@ void ED_undo_push(bContext *C, const char *str) PE_undo_push(CTX_data_scene(C), str); } + else if (obact && obact->mode & OB_MODE_SCULPT) { + /* do nothing for now */ + } else { BKE_write_undo(C, str); } |