Fix for bug: [#8576] Heir always in the back
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user