[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [38810] branches/soc-2011-onion/source/ blender/editors/sculpt_paint: replacing references to bspace-> vc with paint_stroke_view_context(stroke)
Jason Wilkins
Jason.A.Wilkins at gmail.com
Fri Jul 29 05:22:10 CEST 2011
Revision: 38810
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=38810
Author: jwilkins
Date: 2011-07-29 03:22:08 +0000 (Fri, 29 Jul 2011)
Log Message:
-----------
replacing references to bspace->vc with paint_stroke_view_context(stroke)
Modified Paths:
--------------
branches/soc-2011-onion/source/blender/editors/sculpt_paint/paint_mask.c
branches/soc-2011-onion/source/blender/editors/sculpt_paint/paint_vertex.c
Modified: branches/soc-2011-onion/source/blender/editors/sculpt_paint/paint_mask.c
===================================================================
--- branches/soc-2011-onion/source/blender/editors/sculpt_paint/paint_mask.c 2011-07-29 03:13:44 UTC (rev 38809)
+++ branches/soc-2011-onion/source/blender/editors/sculpt_paint/paint_mask.c 2011-07-29 03:22:08 UTC (rev 38810)
@@ -32,6 +32,8 @@
* \ingroup edsculpt
*/
+#include "paint_stroke.h"
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -129,7 +131,7 @@
float radius_squared = radius3d*radius3d;
int n;
- vc = &(paint->cache->bspace_curr->vc);
+ vc= paint_stroke_view_context(stroke);
/*paint_stroke_projection_mat(stroke, &pmat); pmat doesn't work */
for(n=0; n<totnode; n++) {
Modified: branches/soc-2011-onion/source/blender/editors/sculpt_paint/paint_vertex.c
===================================================================
--- branches/soc-2011-onion/source/blender/editors/sculpt_paint/paint_vertex.c 2011-07-29 03:13:44 UTC (rev 38809)
+++ branches/soc-2011-onion/source/blender/editors/sculpt_paint/paint_vertex.c 2011-07-29 03:22:08 UTC (rev 38810)
@@ -1612,7 +1612,7 @@
{
#if 0 // SNIP
struct Object *ob= CTX_data_active_object(C);
- const ViewContext *vc = ob->paint->bspace->vc;
+ const ViewContext *vc = paint_stroke_view_context(stroke);
/*float (*pmat)[4]; XXX: doesn't work */
float tex_mouse[2] = {0,0}; /* TODO */
float symm_brush_local_mat[4][4]= MAT4_UNITY; /* TODO */
More information about the Bf-blender-cvs
mailing list