copy_softbody() didn't check if object actually was softbody!

This commit is contained in:
Alexander Ewering 2005-04-16 16:56:06 +00:00
parent 5ff281eaec
commit dfe3ad0d7b

@ -749,6 +749,8 @@ SoftBody *copy_softbody(SoftBody *sb)
{
SoftBody *sbn;
if (sb==NULL) return(NULL);
sbn= MEM_dupallocN(sb);
sbn->totspring= sbn->totpoint= 0;
sbn->bpoint= NULL;