Revision: 48385
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=48385
Author:   psy-fi
Date:     2012-06-28 19:38:02 +0000 (Thu, 28 Jun 2012)
Log Message:
-----------
Extra/Ultra/Super/Dooper/Uber hackish commit to set mapping mode of
texpaint brushes to tiled, same as they behave currently. Unfortunately
there's no straightforward way to detect which brush goes to which paint
mode so a version patch is hard to write.

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:22:13 UTC (rev 48384)
+++ 
branches/soc-2012-bratwurst/source/blender/editors/sculpt_paint/paint_cursor.c  
    2012-06-28 19:38:02 UTC (rev 48385)
@@ -654,6 +654,10 @@
        int pixel_radius, hit = 0, in_uv_editor;
        float zoomx, zoomy;
 
+       if(CTX_data_mode_enum(C) == CTX_MODE_PAINT_TEXTURE) {
+               brush->mtex.brush_map_mode = MTEX_MAP_MODE_TILED;
+       }
+
        /* set various defaults */
        translation[0] = x;
        translation[1] = y;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to