[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [36574] trunk/blender/source/blender/ editors/sculpt_paint/paint_image.c: Recreate mipmaps after undo in image editor

Sergey Sharybin g.ulairi at gmail.com
Mon May 9 15:13:16 CEST 2011


Revision: 36574
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=36574
Author:   nazgul
Date:     2011-05-09 13:13:16 +0000 (Mon, 09 May 2011)
Log Message:
-----------
Recreate mipmaps after undo in image editor

Modified Paths:
--------------
    trunk/blender/source/blender/editors/sculpt_paint/paint_image.c

Modified: trunk/blender/source/blender/editors/sculpt_paint/paint_image.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/paint_image.c	2011-05-09 12:46:59 UTC (rev 36573)
+++ trunk/blender/source/blender/editors/sculpt_paint/paint_image.c	2011-05-09 13:13:16 UTC (rev 36574)
@@ -440,6 +440,8 @@
 		GPU_free_image(ima); /* force OpenGL reload */
 		if(ibuf->rect_float)
 			ibuf->userflags |= IB_RECT_INVALID; /* force recreate of char rect */
+		if(ibuf->mipmap[0])
+			ibuf->userflags |= IB_MIPMAP_INVALID; /* force mipmap recreatiom */
 
 	}
 




More information about the Bf-blender-cvs mailing list