[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [36892] trunk/blender/source/blender/ editors/sculpt_paint/paint_vertex.c: fix for last commit when running the operators outside the 3d view.

Campbell Barton ideasman42 at gmail.com
Wed May 25 12:29:25 CEST 2011


Revision: 36892
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=36892
Author:   campbellbarton
Date:     2011-05-25 10:29:24 +0000 (Wed, 25 May 2011)
Log Message:
-----------
fix for last commit when running the operators outside the 3d view.

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	2011-05-25 10:07:59 UTC (rev 36891)
+++ trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c	2011-05-25 10:29:24 UTC (rev 36892)
@@ -869,7 +869,7 @@
 	view3d_set_viewcontext(C, &vc);
 	me= get_mesh(vc.obact);
 
-	if (me && me->dvert && vc.ar->regiontype==RGN_TYPE_WINDOW) {
+	if (me && me->dvert && vc.v3d && vc.rv3d) {
 		int index;
 
 		view3d_operator_needs_opengl(C);
@@ -953,7 +953,7 @@
 			view3d_set_viewcontext(C, &vc);
 			me= get_mesh(vc.obact);
 
-			if (me && me->dvert && vc.ar->regiontype==RGN_TYPE_WINDOW) {
+			if (me && me->dvert && vc.v3d && vc.rv3d) {
 				int index;
 
 				view3d_operator_needs_opengl(C);
@@ -1022,6 +1022,7 @@
 	return OPERATOR_FINISHED;
 }
 
+/* TODO, we could make this a menu into OBJECT_OT_vertex_group_set_active rather then its own operator */
 void PAINT_OT_weight_sample_group(wmOperatorType *ot)
 {
 	PropertyRNA *prop= NULL;




More information about the Bf-blender-cvs mailing list