Bugfix #17832
authorTon Roosendaal <ton@blender.org>
Tue, 14 Oct 2008 12:16:12 +0000 (12:16 +0000)
committerTon Roosendaal <ton@blender.org>
Tue, 14 Oct 2008 12:16:12 +0000 (12:16 +0000)
Particle system crashed in convertblender, missing NULL check.
This fixes crash, render survives, but I doubt it was meant so...

Will leave it Janne to evaluate later.

source/blender/render/intern/source/convertblender.c

index 2d229cb33878568cdbbaf1646121e06d4b08d595..ae955a63f98443463b58d321e9053bbfdbd1bfe4 100644 (file)
@@ -1868,7 +1868,7 @@ static int render_new_particle_system(Render *re, ObjectRen *obr, ParticleSystem
 
                        dosimplify= psys_render_simplify_params(psys, cpa, simplify);
 
-                       if(path_nbr) {
+                       if(path_nbr && psys->childcache) {
                                cache = psys->childcache[a-totpart];
                                max_k = (int)cache->steps;
                        }