diff options
author | Ton Roosendaal <ton@blender.org> | 2011-06-14 13:55:38 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2011-06-14 13:55:38 +0400 |
commit | 113d653edbdcfabf48ac8dfab743f0c7500f0954 (patch) | |
tree | 0ccd35e166aba86e3803052a9eaefdd60223f7bd /source/blender/editors/util | |
parent | ce914e51ab281429428b20a94bcf7791684066b7 (diff) |
Bugfix #27573
Sculpt and Paint undo steps kept hanging in the sculpt/paint modes.
Now undo will switch back to global undo, and redo enter the mode
again. Just like weight/vertex paint.
Diffstat (limited to 'source/blender/editors/util')
-rw-r--r-- | source/blender/editors/util/undo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/util/undo.c b/source/blender/editors/util/undo.c index 24a868891de..8a6ec7f75db 100644 --- a/source/blender/editors/util/undo.c +++ b/source/blender/editors/util/undo.c @@ -156,11 +156,11 @@ static int ed_undo_step(bContext *C, int step, const char *undoname) int do_glob_undo= 0; if(obact && obact->mode & OB_MODE_TEXTURE_PAINT) { - if(!ED_undo_paint_step(C, UNDO_PAINT_IMAGE, step, undoname) && undoname) + if(!ED_undo_paint_step(C, UNDO_PAINT_IMAGE, step, undoname)) do_glob_undo= 1; } else if(obact && obact->mode & OB_MODE_SCULPT) { - if(!ED_undo_paint_step(C, UNDO_PAINT_MESH, step, undoname) && undoname) + if(!ED_undo_paint_step(C, UNDO_PAINT_MESH, step, undoname)) do_glob_undo= 1; } else if(obact && obact->mode & OB_MODE_PARTICLE_EDIT) { |