[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [56422] trunk/blender/source/blender/ editors/sculpt_paint/paint_cursor.c: Fix: Overlay was getting invalidated too often in image editor making

Antony Riakiotakis kalast at gmail.com
Tue Apr 30 23:17:21 CEST 2013


Revision: 56422
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=56422
Author:   psy-fi
Date:     2013-04-30 21:17:21 +0000 (Tue, 30 Apr 2013)
Log Message:
-----------
Fix: Overlay was getting invalidated too often in image editor making
refresh extremely slow.

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

Modified: trunk/blender/source/blender/editors/sculpt_paint/paint_cursor.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/paint_cursor.c	2013-04-30 20:57:45 UTC (rev 56421)
+++ trunk/blender/source/blender/editors/sculpt_paint/paint_cursor.c	2013-04-30 21:17:21 UTC (rev 56422)
@@ -74,7 +74,7 @@
 	int winy;
 	bool init;
 	int old_size;
-	int old_zoom;
+	float old_zoom;
 	bool old_col;
 } TexSnapshot;
 
@@ -93,7 +93,8 @@
 	        (mtex->brush_map_mode != MTEX_MAP_MODE_TILED ||
 	         (vc->ar->winx == snap->winx &&
 	          vc->ar->winy == snap->winy)) &&
-	        snap->old_zoom == zoom &&
+	        (mtex->brush_map_mode == MTEX_MAP_MODE_STENCIL ||
+	        snap->old_zoom == zoom) &&
 	        snap->old_col == col
 	        );
 }




More information about the Bf-blender-cvs mailing list