diff options
author | Ton Roosendaal <ton@blender.org> | 2005-12-19 14:55:31 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-12-19 14:55:31 +0300 |
commit | 74374bcaf94a68987e26e47e405d79d247ba92d3 (patch) | |
tree | 2f5aefc7b571dd42620c616ad5b644644d8f0924 /source/blender/src/editdeform.c | |
parent | 60b22c1e7179682a65b87b4e2c617edb06505be3 (diff) |
#3605
Shift+ctrl+A "Apply deformation" didn't work anymore, since we got the
Modifier stack. I've inserted a notice there for now, to point users to
the proper buttons.
Diffstat (limited to 'source/blender/src/editdeform.c')
-rw-r--r-- | source/blender/src/editdeform.c | 33 |
1 files changed, 1 insertions, 32 deletions
diff --git a/source/blender/src/editdeform.c b/source/blender/src/editdeform.c index 418209dc709..dbfbbfde0c8 100644 --- a/source/blender/src/editdeform.c +++ b/source/blender/src/editdeform.c @@ -629,37 +629,6 @@ void vertexgroup_select_by_name(Object *ob, char *name) void object_apply_deform(Object *ob) { - char *err= NULL; - - if(ob==NULL) return; - - if(ob->type==OB_MESH) { - Mesh *me= ob->data; - if(me->id.us>1) { - err= "Can't apply deformation to Mesh with other users"; - } else { - int i, dmNeedsFree; - DerivedMesh *dm = mesh_get_derived_deform(ob, &dmNeedsFree); - - for (i=0; i<me->totvert; i++) { - dm->getVertCo(dm, i, me->mvert[i].co); - } - - if (dmNeedsFree) - dm->release(dm); - - DAG_object_flush_update(G.scene, ob, OB_RECALC_DATA); - } - } - else if (ob->type==OB_CURVE || ob->type==OB_SURF) { - Curve *cu= ob->data; - if(cu->id.us>1) { - err= "Can't apply deformation to Curve with other users"; - } else { - freedisplist(&ob->disp); - } - } - - if(err) error(err); + notice("Apply Deformation now only availble in Modifier buttons"); } |