[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [23953] trunk/blender/source/blender: use the meshes mirror flag for weight painting
Campbell Barton
ideasman42 at gmail.com
Mon Oct 19 15:09:15 CEST 2009
Revision: 23953
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=23953
Author: campbellbarton
Date: 2009-10-19 15:09:13 +0200 (Mon, 19 Oct 2009)
Log Message:
-----------
use the meshes mirror flag for weight painting
Modified Paths:
--------------
trunk/blender/source/blender/editors/armature/poseobject.c
trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c
trunk/blender/source/blender/makesdna/DNA_scene_types.h
Modified: trunk/blender/source/blender/editors/armature/poseobject.c
===================================================================
--- trunk/blender/source/blender/editors/armature/poseobject.c 2009-10-19 12:27:40 UTC (rev 23952)
+++ trunk/blender/source/blender/editors/armature/poseobject.c 2009-10-19 13:09:13 UTC (rev 23953)
@@ -1154,7 +1154,7 @@
return;
}
-// XXX add_verts_to_dgroups(meshobj, poseobj, heatweights, (Gwp.flag & VP_MIRROR_X));
+// XXX add_verts_to_dgroups(meshobj, poseobj, heatweights, ((Mesh *)(meshobj->data))->editflag & ME_EDIT_MIRROR_X);
if(heatweights)
BIF_undo_push("Apply Bone Heat Weights to Vertex Groups");
Modified: trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c 2009-10-19 12:27:40 UTC (rev 23952)
+++ trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c 2009-10-19 13:09:13 UTC (rev 23953)
@@ -394,7 +394,7 @@
/* directly copied from weight_paint, should probaby split into a seperate function */
/* if mirror painting, find the other group */
- if(wp->flag & VP_MIRROR_X) {
+ if(me->editflag & ME_EDIT_MIRROR_X) {
bDeformGroup *defgroup= BLI_findlink(&ob->defbase, ob->actdef-1);
if(defgroup) {
bDeformGroup *curdef;
@@ -437,7 +437,7 @@
uw->weight= dw->weight; /* set the undo weight */
dw->weight= paintweight;
- if(wp->flag & VP_MIRROR_X) { /* x mirror painting */
+ if(me->editflag & ME_EDIT_MIRROR_X) { /* x mirror painting */
int j= mesh_get_x_mirror_vert(ob, faceverts[i]);
if(j>=0) {
/* copy, not paint again */
@@ -1009,7 +1009,7 @@
wpaint_blend(wp, dw, uw, (float)alpha/255.0, paintweight);
- if(wp->flag & VP_MIRROR_X) { /* x mirror painting */
+ if(me->editflag & ME_EDIT_MIRROR_X) { /* x mirror painting */
int j= mesh_get_x_mirror_vert(ob, index);
if(j>=0) {
/* copy, not paint again */
@@ -1284,7 +1284,7 @@
Mat3CpyMat4(wpd->wpimat, imat);
/* if mirror painting, find the other group */
- if(wp->flag & VP_MIRROR_X) {
+ if(me->editflag & ME_EDIT_MIRROR_X) {
bDeformGroup *defgroup= BLI_findlink(&ob->defbase, ob->actdef-1);
if(defgroup) {
bDeformGroup *curdef;
Modified: trunk/blender/source/blender/makesdna/DNA_scene_types.h
===================================================================
--- trunk/blender/source/blender/makesdna/DNA_scene_types.h 2009-10-19 12:27:40 UTC (rev 23952)
+++ trunk/blender/source/blender/makesdna/DNA_scene_types.h 2009-10-19 13:09:13 UTC (rev 23953)
@@ -556,7 +556,7 @@
#define VP_SOFT 4
#define VP_NORMALS 8
#define VP_SPRAY 16
-#define VP_MIRROR_X 32
+// #define VP_MIRROR_X 32 // depricated in 2.5x use (me->editflag & ME_EDIT_MIRROR_X)
#define VP_HARD 64
#define VP_ONLYVGROUP 128
More information about the Bf-blender-cvs
mailing list