- Funny joke! Blender gave "Can't apply deform to shared mesh" error

and then went ahead and did it anyway. Someone is lying!
This commit is contained in:
Daniel Dunbar
2005-03-28 19:55:04 +00:00
parent 983745d102
commit 7dbb253908

View File

@@ -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);