diff options
author | Ton Roosendaal <ton@blender.org> | 2006-09-03 16:16:14 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-09-03 16:16:14 +0400 |
commit | 4603f452c23f0711e18fb7f652abad529f94c203 (patch) | |
tree | 17d42fe5337adb1e269f3d8eaa26237511383760 /source/blender/makesdna/DNA_lattice_types.h | |
parent | 7970da34edbfba8b317fff23fb276e78bf67e460 (diff) |
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.
Diffstat (limited to 'source/blender/makesdna/DNA_lattice_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_lattice_types.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_lattice_types.h b/source/blender/makesdna/DNA_lattice_types.h index 3d77e7feb02..823dc2ba485 100644 --- a/source/blender/makesdna/DNA_lattice_types.h +++ b/source/blender/makesdna/DNA_lattice_types.h @@ -37,6 +37,7 @@ struct BPoint; struct Ipo; struct Key; +struct MDeformVert; typedef struct Lattice { ID id; @@ -52,6 +53,8 @@ typedef struct Lattice { struct Ipo *ipo; struct Key *key; + + struct MDeformVert *dvert; } Lattice; /* ***************** LATTICE ********************* */ |