Blender Git Loki
Git Commits -> Revision 4603f45
Revision 4603f45 by Ton Roosendaal (master) September 3, 2006, 12:16 (GMT) |
Animation department feature request: support for vertex groups in Lattices In a quick glance: (temp image) http://www.blender.org/bf/rt.png Main reason is that Lattices are useful a lot for Armature deformation. Lattices just provide much more precise and interesting control. However, with only bone envelopes it's very hard to use. Working with Lattice vertex groups is nearly identical to Mesh: - on CTRL+P 'make parent' you can choose the deform option now - In editmode, the buttons to control vertex groups are available - In outliner you can select vertexgroups too - Deforming Lattices with Armatures has all options as for Mesh now. Note: - No WeightPaint has been added yet. To compensate, the editmode drawing for a Lattice with vertex group shows weight values for the active vertex group. - Lattice editmode doesn't undo/redo weight editing yet. - Softbody for Lattice still uses own vertex weights Implementation notes: - derivedmesh weight_to_rgb() is now exported to drawobject.c - been doing cleanups in code (order of includes, var declarations, etc) - weightpaint button handling now is generic I've checked on Brecht's proposal for Custom Element data; http://mediawiki.blender.org/index.php/BlenderDev/CustomElementData It could have been used, but that would mean the existing code for vertexgroup handling and armature deform couldn't be re-used. I guess this is really a later todo. |
Commit Details:
Full Hash: 4603f452c23f0711e18fb7f652abad529f94c203
SVN Revision: 8431
Parent Commit: 7970da3
Lines Changed: +451, -278
20 Modified Paths:
/source/blender/blenkernel/BKE_DerivedMesh.h (+2, -0) (Diff)
/source/blender/blenkernel/intern/armature.c (+24, -14) (Diff)
/source/blender/blenkernel/intern/DerivedMesh.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/lattice.c (+14, -0) (Diff)
/source/blender/blenkernel/intern/softbody.c (+16, -9) (Diff)
/source/blender/blenloader/intern/readfile.c (+28, -24) (Diff)
/source/blender/blenloader/intern/writefile.c (+26, -22) (Diff)
/source/blender/include/BIF_editdeform.h (+2, -2) (Diff)
/source/blender/include/butspace.h (+30, -23) (Diff)
/source/blender/makesdna/DNA_lattice_types.h (+3, -0) (Diff)
/source/blender/python/api2_2x/Mesh.c (+1, -1) (Diff)
/source/blender/python/api2_2x/NMesh.c (+3, -3) (Diff)
/source/blender/src/butspace.c (+3, -0) (Diff)
/source/blender/src/buttons_editing.c (+74, -64) (Diff)
/source/blender/src/drawobject.c (+32, -11) (Diff)
/source/blender/src/editarmature.c (+1, -1) (Diff)
/source/blender/src/editdeform.c (+163, -94) (Diff)
/source/blender/src/editlattice.c (+25, -2) (Diff)
/source/blender/src/editobject.c (+2, -6) (Diff)
/source/blender/src/vpaint.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/armature.c (+24, -14) (Diff)
/source/blender/blenkernel/intern/DerivedMesh.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/lattice.c (+14, -0) (Diff)
/source/blender/blenkernel/intern/softbody.c (+16, -9) (Diff)
/source/blender/blenloader/intern/readfile.c (+28, -24) (Diff)
/source/blender/blenloader/intern/writefile.c (+26, -22) (Diff)
/source/blender/include/BIF_editdeform.h (+2, -2) (Diff)
/source/blender/include/butspace.h (+30, -23) (Diff)
/source/blender/makesdna/DNA_lattice_types.h (+3, -0) (Diff)
/source/blender/python/api2_2x/Mesh.c (+1, -1) (Diff)
/source/blender/python/api2_2x/NMesh.c (+3, -3) (Diff)
/source/blender/src/butspace.c (+3, -0) (Diff)
/source/blender/src/buttons_editing.c (+74, -64) (Diff)
/source/blender/src/drawobject.c (+32, -11) (Diff)
/source/blender/src/editarmature.c (+1, -1) (Diff)
/source/blender/src/editdeform.c (+163, -94) (Diff)
/source/blender/src/editlattice.c (+25, -2) (Diff)
/source/blender/src/editobject.c (+2, -6) (Diff)
/source/blender/src/vpaint.c (+1, -1) (Diff)