[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [48386] branches/soc-2012-bratwurst/source /blender/editors/sculpt_paint/paint_cursor.c: More shameless hacking, make mapping mode depend on the tool.

Antony Riakiotakis kalast at gmail.com
Thu Jun 28 22:07:18 CEST 2012


Revision: 48386
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=48386
Author:   psy-fi
Date:     2012-06-28 20:07:09 +0000 (Thu, 28 Jun 2012)
Log Message:
-----------
More shameless hacking, make mapping mode depend on the tool. I really
have to expose support for mapping modes in image paint too. Only area
is really hard to support anyway...Now that overlay sort of works, it's
plain that the overlay is not exactly as it should be for texpaint.
Working out why not.

Modified Paths:
--------------
    branches/soc-2012-bratwurst/source/blender/editors/sculpt_paint/paint_cursor.c

Modified: branches/soc-2012-bratwurst/source/blender/editors/sculpt_paint/paint_cursor.c
===================================================================
--- branches/soc-2012-bratwurst/source/blender/editors/sculpt_paint/paint_cursor.c	2012-06-28 19:38:02 UTC (rev 48385)
+++ branches/soc-2012-bratwurst/source/blender/editors/sculpt_paint/paint_cursor.c	2012-06-28 20:07:09 UTC (rev 48386)
@@ -656,6 +656,9 @@
 
 	if(CTX_data_mode_enum(C) == CTX_MODE_PAINT_TEXTURE) {
 		brush->mtex.brush_map_mode = MTEX_MAP_MODE_TILED;
+
+		if((brush->flag & BRUSH_RAKE) || (brush->flag & BRUSH_RANDOM_ROTATION))
+			brush->mtex.brush_map_mode = MTEX_MAP_MODE_VIEW;
 	}
 
 	/* set various defaults */




More information about the Bf-blender-cvs mailing list