[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [45685] trunk/blender/source/blender/ editors/sculpt_paint/paint_vertex.c: code cleanup: remove bmesh todo, which infact is working fine.
Campbell Barton
ideasman42 at gmail.com
Mon Apr 16 12:02:53 CEST 2012
Revision: 45685
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=45685
Author: campbellbarton
Date: 2012-04-16 10:02:52 +0000 (Mon, 16 Apr 2012)
Log Message:
-----------
code cleanup: remove bmesh todo, which infact is working fine.
Modified Paths:
--------------
trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c
Modified: trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c 2012-04-16 09:56:12 UTC (rev 45684)
+++ trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c 2012-04-16 10:02:52 UTC (rev 45685)
@@ -2770,9 +2770,7 @@
static void vpaint_paint_poly(VPaint *vp, VPaintData *vpd, Object *ob,
const unsigned int index, const float mval[2],
- const float brush_size_pressure, const float brush_alpha_pressure,
- int UNUSED(flip)
- )
+ const float brush_size_pressure, const float brush_alpha_pressure)
{
ViewContext *vc = &vpd->vc;
Brush *brush = paint_brush(&vp->paint);
@@ -2871,7 +2869,7 @@
Mesh *me = ob->data;
float mat[4][4];
int *indexar = vpd->indexar;
- int totindex, index, flip;
+ int totindex, index;
float mval[2];
const float pressure = RNA_float_get(itemptr, "pressure");
@@ -2879,10 +2877,7 @@
const float brush_alpha_pressure = brush_alpha(scene, brush) * (brush_use_alpha_pressure(scene, brush) ? pressure : 1.0f);
RNA_float_get_array(itemptr, "mouse", mval);
- flip = RNA_boolean_get(itemptr, "pen_flip");
- (void)flip; /* BMESH_TODO */
-
view3d_operator_needs_opengl(C);
/* load projection matrix */
@@ -2932,7 +2927,7 @@
for (index = 0; index < totindex; index++) {
if (indexar[index] && indexar[index] <= me->totpoly) {
- vpaint_paint_poly(vp, vpd, ob, indexar[index] - 1, mval, brush_size_pressure, brush_alpha_pressure, flip);
+ vpaint_paint_poly(vp, vpd, ob, indexar[index] - 1, mval, brush_size_pressure, brush_alpha_pressure);
}
}
More information about the Bf-blender-cvs
mailing list