diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-05-08 17:26:06 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-05-09 11:34:45 +0300 |
commit | 25eb6d01f5074115002cba42c4655615b7778ab3 (patch) | |
tree | ed93443d9e0195db238c31cbe9705794dad4da12 /source/blender/draw/intern/draw_cache_impl_particles.c | |
parent | 283158ecc1247d21cbde70b115760269cadf7db5 (diff) |
Draw manager: Correct edit mode check for particles
Diffstat (limited to 'source/blender/draw/intern/draw_cache_impl_particles.c')
-rw-r--r-- | source/blender/draw/intern/draw_cache_impl_particles.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_particles.c b/source/blender/draw/intern/draw_cache_impl_particles.c index 964cc38e3eb..2d9e12e8cb5 100644 --- a/source/blender/draw/intern/draw_cache_impl_particles.c +++ b/source/blender/draw/intern/draw_cache_impl_particles.c @@ -171,7 +171,7 @@ static void ensure_seg_pt_count(ParticleSystem *psys, ParticleBatchCache *cache) cache->elems_count = 0; cache->point_count = 0; - if (psys->edit != NULL) { + if (psys->edit != NULL && psys->edit->pathcache != NULL) { count_cache_segment_keys( psys->edit->pathcache, psys->totpart, cache); } else { @@ -434,7 +434,7 @@ static void particle_batch_cache_ensure_pos_and_seg(ParticleSystem *psys, } } - if (psys->edit != NULL) { + if (psys->edit != NULL && psys->edit->pathcache != NULL) { curr_point = particle_batch_cache_fill_segments( psys, psmd, psys->edit->pathcache, PARTICLE_SOURCE_PARENT, 0, 0, psys->totpart, |