[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [55685] trunk/blender/source/blender/ editors/sculpt_paint/paint_cursor.c: optimize away reloading of brush texture when rotating the stencil
Antony Riakiotakis
kalast at gmail.com
Sun Mar 31 13:20:30 CEST 2013
Revision: 55685
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=55685
Author: psy-fi
Date: 2013-03-31 11:20:30 +0000 (Sun, 31 Mar 2013)
Log Message:
-----------
optimize away reloading of brush texture when rotating the stencil
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-03-31 11:04:13 UTC (rev 55684)
+++ trunk/blender/source/blender/editors/sculpt_paint/paint_cursor.c 2013-03-31 11:20:30 UTC (rev 55685)
@@ -85,7 +85,8 @@
return (((mtex->tex) &&
equals_v3v3(mtex->ofs, snap->ofs) &&
equals_v3v3(mtex->size, snap->size) &&
- mtex->rot == snap->rot) &&
+ (brush->mtex.brush_map_mode == MTEX_MAP_MODE_STENCIL ||
+ mtex->rot == snap->rot)) &&
/* make brush smaller shouldn't cause a resample */
((mtex->brush_map_mode == MTEX_MAP_MODE_VIEW &&
More information about the Bf-blender-cvs
mailing list