Static particles, drawmode Shaded or Texture, colors for strands were wrong
This commit is contained in:
2006-06-02 12:34:09 +00:00
parent 703d4baadb
commit 69546bcf08

View File

@@ -2606,6 +2606,10 @@ static void draw_static_particle_system(Object *ob, PartEff *paf, int dt)
if(paf->stype==PAF_VECT) {
if(dt>OB_WIRE) {
/* shaded/texture mode: we still draw solid, so have to set materials */
if(dt>OB_SOLID) init_gl_materials(ob, 0);
glEnable(GL_LIGHTING);
set_gl_material(paf->omat);
use_norm= 1;