Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2008-05-11 15:34:39 +0400
committerCampbell Barton <ideasman42@gmail.com>2008-05-11 15:34:39 +0400
commita2528b412393eaa158b0d7756925d93d0c1050ea (patch)
tree940ecc7c1ea5e2ad8c260c61e9e595eb2949bfb6 /source/blender/blenkernel/intern/object.c
parentaa471f6a80377e2bfb0cb5a11ae1f4177158693b (diff)
fix for [#11136] Segmentation fault when copying objects with hairs
Diffstat (limited to 'source/blender/blenkernel/intern/object.c')
-rw-r--r--source/blender/blenkernel/intern/object.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c
index 5594a1dfaf7..a2a7894e3ce 100644
--- a/source/blender/blenkernel/intern/object.c
+++ b/source/blender/blenkernel/intern/object.c
@@ -1054,7 +1054,11 @@ ParticleSystem *copy_particlesystem(ParticleSystem *psys)
psysn->childcache= NULL;
psysn->edit= NULL;
psysn->effectors.first= psysn->effectors.last= 0;
-
+
+ psysn->pathcachebufs.first = psysn->pathcachebufs.last = NULL;
+ psysn->reactevents.first = psysn->reactevents.last = NULL;
+ psysn->renderdata = NULL;
+
psysn->pointcache= BKE_ptcache_copy(psys->pointcache);
id_us_plus((ID *)psysn->part);