Fix for bug: [#8576] Heir always in the back

This commit is contained in:
2008-04-02 23:12:05 +00:00
parent 5dbe42af07
commit 78b250f693

View File

@@ -3083,6 +3083,8 @@ static void draw_new_particle_system(Base *base, ParticleSystem *psys)
ma= give_current_material(ob,part->omat);
if(G.vd->zbuf) glDepthMask(1);
if(select)
cpack(0xFFFFFF);
else if((ma) && (part->draw&PART_DRAW_MAT_COL))
@@ -3572,9 +3574,6 @@ static void draw_new_particle_system(Base *base, ParticleSystem *psys)
glDisable(GL_LIGHTING);
glDisableClientState(GL_COLOR_ARRAY);
glEnableClientState(GL_NORMAL_ARRAY);
#if 0 /* If this is needed, it cant be enabled in wire mode, since it messes up the view - Campbell */
glEnable(GL_DEPTH_TEST);
#endif
if(states)
MEM_freeN(states);