Bugfix for particle path drawing messing up opengl state in some cases.
This commit is contained in:
parent
7643d5acd5
commit
cd9e2a0c70
@ -3426,12 +3426,12 @@ static void draw_new_particle_system(Base *base, ParticleSystem *psys)
|
||||
glEnableClientState(GL_VERTEX_ARRAY);
|
||||
glEnableClientState(GL_NORMAL_ARRAY);
|
||||
glEnable(GL_LIGHTING);
|
||||
|
||||
glColorMaterial(GL_FRONT_AND_BACK, GL_DIFFUSE);
|
||||
glEnable(GL_COLOR_MATERIAL);
|
||||
|
||||
if(part->draw&PART_DRAW_MAT_COL) {
|
||||
if(part->draw&PART_DRAW_MAT_COL)
|
||||
glEnableClientState(GL_COLOR_ARRAY);
|
||||
glColorMaterial(GL_FRONT_AND_BACK, GL_DIFFUSE);
|
||||
}
|
||||
|
||||
if(totchild && (part->draw&PART_DRAW_PARENT)==0)
|
||||
totpart=0;
|
||||
|
Loading…
Reference in New Issue
Block a user