diff options
author | Daniel Dunbar <daniel@zuster.org> | 2005-03-28 23:55:04 +0400 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2005-03-28 23:55:04 +0400 |
commit | 7dbb253908de5fdd6d5992bdeb38abaaf270808c (patch) | |
tree | b1d45f9e1591db6aab2d51a13e33c09776b23d4a /source/blender/src/editdeform.c | |
parent | 983745d1021c357c5d13bc4272cbd35937b2162c (diff) |
- Funny joke! Blender gave "Can't apply deform to shared mesh" error
and then went ahead and did it anyway. Someone is lying!
Diffstat (limited to 'source/blender/src/editdeform.c')
-rw-r--r-- | source/blender/src/editdeform.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/source/blender/src/editdeform.c b/source/blender/src/editdeform.c index 61761ad544a..0041974fab9 100644 --- a/source/blender/src/editdeform.c +++ b/source/blender/src/editdeform.c @@ -610,19 +610,21 @@ void object_apply_deform(Object *ob) Mesh *me= ob->data; if(me->id.us>1) { err= "Can't apply deformation to Mesh with other users"; + } else { + mesh_modifier(ob, 's'); // start + mesh_modifier(ob, 'a'); // apply and end + freedisplist(&ob->disp); } - mesh_modifier(ob, 's'); // start - mesh_modifier(ob, 'a'); // apply and end - freedisplist(&ob->disp); } 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 { + curve_modifier(ob, 's'); // start + curve_modifier(ob, 'a'); // apply and end + freedisplist(&ob->disp); } - curve_modifier(ob, 's'); // start - curve_modifier(ob, 'a'); // apply and end - freedisplist(&ob->disp); } if(err) error(err); |