copy_softbody() didn't check if object actually was softbody!
authorAlexander Ewering <blender@instinctive.de>
Sat, 16 Apr 2005 16:56:06 +0000 (16:56 +0000)
committerAlexander Ewering <blender@instinctive.de>
Sat, 16 Apr 2005 16:56:06 +0000 (16:56 +0000)
source/blender/blenkernel/intern/object.c

index 25dee64a7e8f4d6041c2c926c01621c16e49450d..8f0fe7971839188b2b2a500319f2cc84c90512bd 100644 (file)
@@ -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;