* Fix for crash, drawing particle systems with 'col' set to draw strands in material colour, but no material (null pointer).

This commit is contained in:
2008-02-11 23:24:16 +00:00
parent 798d8ebf26
commit 5c13a35d63

View File

@@ -3046,7 +3046,7 @@ static void draw_new_particle_system(Base *base, ParticleSystem *psys)
if(select)
cpack(0xFFFFFF);
else if(part->draw&PART_DRAW_MAT_COL)
else if((ma) && (part->draw&PART_DRAW_MAT_COL))
glColor3f(ma->r,ma->g,ma->b);
else
cpack(0);