diff options
author | Janne Karhu <jhkarh@gmail.com> | 2010-12-08 01:17:58 +0300 |
---|---|---|
committer | Janne Karhu <jhkarh@gmail.com> | 2010-12-08 01:17:58 +0300 |
commit | 1a8665ac4551913e25138109ad10196c2958b6d3 (patch) | |
tree | f9ed18a45b46b1d9f1876956d2c7864f20c33dae /source/blender/blenkernel | |
parent | b5ab3980e8e1f84f380314b877ff5bfe2599cc29 (diff) |
Fix for [#25079] Duplicating object with particles system on it make Blender crashs
* pointcache->cached_frames wasn't set to NULL when copying pointcaches
* also set pointcache->edit to null just in case
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/pointcache.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/pointcache.c b/source/blender/blenkernel/intern/pointcache.c index cd45a39f2c9..4e804cf14f7 100644 --- a/source/blender/blenkernel/intern/pointcache.c +++ b/source/blender/blenkernel/intern/pointcache.c @@ -2380,6 +2380,8 @@ static PointCache *ptcache_copy(PointCache *cache) /* hmm, should these be copied over instead? */ ncache->mem_cache.first = NULL; ncache->mem_cache.last = NULL; + ncache->cached_frames = NULL; + ncache->edit = NULL; ncache->flag= 0; ncache->simframe= 0; |