[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [20445] trunk/blender/source/blender/src/ imagepaint.c: flag the images as dirty when projection painting ( so there is the option to repack a packed image)

Campbell Barton ideasman42 at gmail.com
Wed May 27 05:43:23 CEST 2009


Revision: 20445
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=20445
Author:   campbellbarton
Date:     2009-05-27 05:43:22 +0200 (Wed, 27 May 2009)

Log Message:
-----------
flag the images as dirty when projection painting (so there is the option to repack a packed image)

Modified Paths:
--------------
    trunk/blender/source/blender/src/imagepaint.c

Modified: trunk/blender/source/blender/src/imagepaint.c
===================================================================
--- trunk/blender/source/blender/src/imagepaint.c	2009-05-27 03:42:51 UTC (rev 20444)
+++ trunk/blender/source/blender/src/imagepaint.c	2009-05-27 03:43:22 UTC (rev 20445)
@@ -3300,6 +3300,7 @@
 			int size = sizeof(UndoTile **) * IMAPAINT_TILE_NUMBER(last_projIma->ibuf->x) * IMAPAINT_TILE_NUMBER(last_projIma->ibuf->y);
 			last_projIma->undoRect = (UndoTile **) BLI_memarena_alloc(arena, size);
 			memset(last_projIma->undoRect, 0, size);
+			last_projIma->ibuf->userflags |= IB_BITMAPDIRTY;
 		}
 		
 		for (bucket_index = 0; bucket_index < bucket_tot; bucket_index++) {





More information about the Bf-blender-cvs mailing list