forked from bartvdbraak/blender
copy_softbody() didn't check if object actually was softbody!
This commit is contained in:
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;
|
||||
|
Loading…
Reference in New Issue
Block a user