diff options
author | Janne Karhu <jhkarh@gmail.com> | 2012-02-12 04:32:31 +0400 |
---|---|---|
committer | Janne Karhu <jhkarh@gmail.com> | 2012-02-12 04:32:31 +0400 |
commit | 670bde28dd2ca162bce3e465e7f0c4457c046d56 (patch) | |
tree | b74bc8e6cb474ee25ec53485eb1ccbec4580c7ae /source | |
parent | a7458742b1f87c918fad6e7f0081e5d2b2e94125 (diff) |
Fix [#29530] Changing to particle mode could crash in some cases
* If a baked particle didn't have any cached keys creating an edit path for it crashed.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/particle.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/particle.c b/source/blender/blenkernel/intern/particle.c index 8bd5b55e778..f0b05846670 100644 --- a/source/blender/blenkernel/intern/particle.c +++ b/source/blender/blenkernel/intern/particle.c @@ -3122,6 +3122,9 @@ void psys_cache_edit_paths(Scene *scene, Object *ob, PTCacheEdit *edit, float cf if(edit->totcached && !(point->flag & PEP_EDIT_RECALC)) continue; + if(point->totkey == 0) + continue; + ekey = point->keys; pind.keyed = 0; |