Fix [#30419] Median wrongly setting lattice vertex weights.
authorBastien Montagne <montagne29@wanadoo.fr>
Fri, 2 Mar 2012 10:30:11 +0000 (10:30 +0000)
committerBastien Montagne <montagne29@wanadoo.fr>
Fri, 2 Mar 2012 10:30:11 +0000 (10:30 +0000)
commit47a1c7e5aab44ce24814f0c421315a50ab7a6147
tree5cc949c4d8f98a44bb68b07c004fa851289bc88e
parent979a80e74398dd68f013b8ca1f18b2653a4f6338
Fix [#30419] Median wrongly setting lattice vertex weights.

In fact, the same bug affected curves' weights too. Now using the same method as for setting mesh edges' crease and bevel weights. Also factorized/simplified that part of code by defining a new utility func computing the scale factor.

Also greatly simplified UI code in same v3d_editvertex_buts() function, was really over-complicated (this fixes btw a few minor UI bugs in the transform editmode panel, like missing tips, etc.).
source/blender/editors/space_view3d/view3d_buttons.c