[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [42978] trunk/blender/source/blender/ editors/sculpt_paint/sculpt.c: Fix #29718: anchored stroke with image-texture --- strange behaviour

Sergey Sharybin sergey.vfx at gmail.com
Thu Dec 29 15:57:21 CET 2011


Revision: 42978
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=42978
Author:   nazgul
Date:     2011-12-29 14:57:15 +0000 (Thu, 29 Dec 2011)
Log Message:
-----------
Fix #29718: anchored stroke with image-texture --- strange behaviour

Bug was caused by refactoring in rev41470

Revision Links:
--------------
    http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=41470

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

Modified: trunk/blender/source/blender/editors/sculpt_paint/sculpt.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/sculpt.c	2011-12-29 14:46:26 UTC (rev 42977)
+++ trunk/blender/source/blender/editors/sculpt_paint/sculpt.c	2011-12-29 14:57:15 UTC (rev 42978)
@@ -673,16 +673,16 @@
 
 			radius = ss->cache->pixel_radius; // use pressure adjusted size for fixed mode
 
-			x = point_2d[0];
-			y = point_2d[1];
+			x = point_2d[0] + ss->cache->vc->ar->winrct.xmin;
+			y = point_2d[1] + ss->cache->vc->ar->winrct.ymin;
 		}
 		else /* else (mtex->brush_map_mode == MTEX_MAP_MODE_TILED),
 		        leave the coordinates relative to the screen */
 		{
 			radius = brush_size(br); // use unadjusted size for tiled mode
 		
-			x = point_2d[0] - ss->cache->vc->ar->winrct.xmin;
-			y = point_2d[1] - ss->cache->vc->ar->winrct.ymin;
+			x = point_2d[0];
+			y = point_2d[1];
 		}
 
 		x /= ss->cache->vc->ar->winx;




More information about the Bf-blender-cvs mailing list