fix [#29832] Weightpainting with "x-mirror" and "auto normalize" fails for center...
authorCampbell Barton <ideasman42@gmail.com>
Fri, 13 Jan 2012 05:52:34 +0000 (05:52 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 13 Jan 2012 05:52:34 +0000 (05:52 +0000)
commit264e132cfa8c81610b11b3c031c6ddecd6016f36
tree967783689d3ce1bf7e3ab8e864a5a673c669e06c
parent6fee7963ce58de987a2fb5527a26862c483bdb9a
fix [#29832] Weightpainting with "x-mirror" and "auto normalize" fails for center bones

normalize function simply wasn't called on the mirror vertex.

also fix 3 other bugs / inconsistencies

* when mirror is enabled, center verts get themselves as the mirror vertex, wpaint code didn't check for this case, mirroring the vertex to it self (would work, but unneeded).
* normalizing after painting would scale the active weight too, now keep the painted weight and adjust others when normalizing.
* VP_ONLYVGROUP wasn't respected for mirror (mirror vertex group would always be added).
source/blender/editors/sculpt_paint/paint_vertex.c