[Bf-blender-cvs] [25eb6d01f50] blender2.8: Draw manager: Correct edit mode check for particles

Sergey Sharybin noreply at git.blender.org
Wed May 9 10:35:14 CEST 2018


Commit: 25eb6d01f5074115002cba42c4655615b7778ab3
Author: Sergey Sharybin
Date:   Tue May 8 16:26:06 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB25eb6d01f5074115002cba42c4655615b7778ab3

Draw manager: Correct edit mode check for particles

===================================================================

M	source/blender/draw/intern/draw_cache_impl_particles.c

===================================================================

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,



More information about the Bf-blender-cvs mailing list