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/src/vpaint.c | |
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/src/vpaint.c')
-rw-r--r-- | source/blender/src/vpaint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/vpaint.c b/source/blender/src/vpaint.c index 3128572723b..380763834ac 100644 --- a/source/blender/src/vpaint.c +++ b/source/blender/src/vpaint.c @@ -1182,7 +1182,7 @@ void weight_paint(void) /* if nothing was added yet, we make dverts and a vertex deform group */ if (!me->dvert) - create_dverts(me); + create_dverts(&me->id); if(G.qual & LR_CTRLKEY) { sample_wpaint(0); |