[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [59063] branches/soc-2013-paint/source/ blender/editors/sculpt_paint/paint_stroke.c: Fix gradient fill not working with spaced strokes released close to the

Antony Riakiotakis kalast at gmail.com
Sun Aug 11 12:35:16 CEST 2013


Revision: 59063
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=59063
Author:   psy-fi
Date:     2013-08-11 10:35:16 +0000 (Sun, 11 Aug 2013)
Log Message:
-----------
Fix gradient fill not working with spaced strokes released close to the
start of the stroke

Modified Paths:
--------------
    branches/soc-2013-paint/source/blender/editors/sculpt_paint/paint_stroke.c

Modified: branches/soc-2013-paint/source/blender/editors/sculpt_paint/paint_stroke.c
===================================================================
--- branches/soc-2013-paint/source/blender/editors/sculpt_paint/paint_stroke.c	2013-08-11 10:35:11 UTC (rev 59062)
+++ branches/soc-2013-paint/source/blender/editors/sculpt_paint/paint_stroke.c	2013-08-11 10:35:16 UTC (rev 59063)
@@ -673,6 +673,14 @@
 			if (sculpt_is_grab_tool(br))
 				return false;
 			break;
+
+		case PAINT_TEXTURE_2D: /* fall through */
+		case PAINT_TEXTURE_PROJECTIVE:
+			if ((br->imagepaint_tool == PAINT_TOOL_FILL) &&
+			    (br->flag & BRUSH_USE_GRADIENT))
+				return false;
+			break;
+
 		default:
 			break;
 	}




More information about the Bf-blender-cvs mailing list