[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [37473] trunk/blender/source/blender/ editors/util/undo.c: Bugfix #27573

Ton Roosendaal ton at blender.org
Tue Jun 14 11:55:39 CEST 2011


Revision: 37473
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=37473
Author:   ton
Date:     2011-06-14 09:55:38 +0000 (Tue, 14 Jun 2011)
Log Message:
-----------
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.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/util/undo.c

Modified: trunk/blender/source/blender/editors/util/undo.c
===================================================================
--- trunk/blender/source/blender/editors/util/undo.c	2011-06-14 09:41:29 UTC (rev 37472)
+++ trunk/blender/source/blender/editors/util/undo.c	2011-06-14 09:55:38 UTC (rev 37473)
@@ -156,11 +156,11 @@
 		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) {




More information about the Bf-blender-cvs mailing list