From bbfb7e5483eaaaf7a21396fd2d4a39b3ee78145d Mon Sep 17 00:00:00 2001 From: Jens Ole Wund Date: Sun, 12 Nov 2006 16:51:29 +0000 Subject: [PATCH] bugfix crash with duplicated softbodies in copy_softbody() scratch pointer was not initialized to NULL in copy did not know that function exists at all --- source/blender/blenkernel/intern/object.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c index 0685bc268d4..3e9a545d9d4 100644 --- a/source/blender/blenkernel/intern/object.c +++ b/source/blender/blenkernel/intern/object.c @@ -860,6 +860,7 @@ SoftBody *copy_softbody(SoftBody *sb) sbn->keys= NULL; sbn->totkey= sbn->totpointkey= 0; + sbn->scratch= NULL; return sbn; }