diff options
author | Daniel Dunbar <daniel@zuster.org> | 2005-08-11 07:31:33 +0400 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2005-08-11 07:31:33 +0400 |
commit | 75bcb4cd9805d58d4f79d5668860f47bf6f17194 (patch) | |
tree | 2ffccd1ed22d02e6706957077e3c782d39e46907 /source/blender/blenkernel/intern/deform.c | |
parent | ac3ed0f92a8e8fab50312c716c8cbdf3f38616d9 (diff) |
- added modifiers_getVirtualModifierList, returns pointer to first modifier
but including "virtual" modifiers (for example, an object skel-parented
to a lattice has a virtual first lattice modifier)
- removed mesh_modifier(), all functionality has been incorporated into
modifier stack (well, keys still don't exist as a modifier, but I am
not sure if they should).
- added interface option to convert a virtual modifier into a real modifier
- added option to parent to lattice object or lattice with deform
- bug fix, patch of hook indices patched all hooks (oops) not just ones
for edited mesh
NOTE: Files saved with 2.38 that include an object parented to a lattice
will not load correctly, because it will look like the object is parented
only to the object (i.e. without deform). Can be simply fixed by reparenting
or adding a lattice modifier. Older files are handled automatically.
Diffstat (limited to 'source/blender/blenkernel/intern/deform.c')
-rw-r--r-- | source/blender/blenkernel/intern/deform.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/source/blender/blenkernel/intern/deform.c b/source/blender/blenkernel/intern/deform.c index e2cb842e16d..d89cca72728 100644 --- a/source/blender/blenkernel/intern/deform.c +++ b/source/blender/blenkernel/intern/deform.c @@ -156,31 +156,6 @@ int get_defgroup_num (Object *ob, bDeformGroup *dg) /* *************** HOOK ****************** */ -void mesh_modifier(Object *ob, float (**vertexCos_r)[3]) -{ - Mesh *me= ob->data; - float (*vertexCos)[3] = NULL; - - do_mesh_key(me); - - if (ob->parent && me->totvert) { - if(ob->parent->type==OB_CURVE && ob->partype==PARSKEL) { - if (!vertexCos) vertexCos = mesh_getVertexCos(me, NULL); - curve_deform_verts(ob->parent, ob, vertexCos, me->totvert); - } - else if(ob->parent->type==OB_LATTICE) { - if (!vertexCos) vertexCos = mesh_getVertexCos(me, NULL); - lattice_deform_verts(ob->parent, ob, vertexCos, me->totvert); - } - else if(ob->parent->type==OB_ARMATURE && ob->partype==PARSKEL) { - if (!vertexCos) vertexCos = mesh_getVertexCos(me, NULL); - armature_deform_verts(ob->parent, ob, vertexCos, me->totvert); - } - } - - *vertexCos_r = vertexCos; -} - int curve_modifier(Object *ob, char mode) { static ListBase nurb={NULL, NULL}; |