[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [21257] branches/soc-2009-yukishiro/source /blender/editors/util/undo.c: fix light paint undo/redo bug

Jingyuan Huang jingyuan.huang at gmail.com
Tue Jun 30 04:49:11 CEST 2009


Revision: 21257
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=21257
Author:   yukishiro
Date:     2009-06-30 04:49:10 +0200 (Tue, 30 Jun 2009)

Log Message:
-----------
fix light paint undo/redo bug

Modified Paths:
--------------
    branches/soc-2009-yukishiro/source/blender/editors/util/undo.c

Modified: branches/soc-2009-yukishiro/source/blender/editors/util/undo.c
===================================================================
--- branches/soc-2009-yukishiro/source/blender/editors/util/undo.c	2009-06-30 02:36:46 UTC (rev 21256)
+++ branches/soc-2009-yukishiro/source/blender/editors/util/undo.c	2009-06-30 02:49:10 UTC (rev 21257)
@@ -138,8 +138,10 @@
 		
 		if(G.f & G_TEXTUREPAINT)
 			undo_imagepaint_step(step);
-		else if(G.f & G_LIGHTPAINT)
+		else if(G.f & G_LIGHTPAINT) {
 			undo_lightpaint_step(C, step);
+			do_glob_undo = 1;
+		}
 		else if(sa && sa->spacetype==SPACE_IMAGE) {
 			SpaceImage *sima= (SpaceImage *)sa->spacedata.first;
 			if(sima->flag & SI_DRAWTOOL)





More information about the Bf-blender-cvs mailing list