Fix hair width changing

This commit is contained in:
Dalai Felinto 2017-05-16 14:52:49 +02:00
parent c81950fbd5
commit e43597446e
1 changed files with 3 additions and 1 deletions

View File

@ -701,7 +701,9 @@ static void CLAY_cache_init(void *vedata)
/* Hair Pass */
{
psl->hair_pass = DRW_pass_create("Hair Pass", DRW_STATE_WRITE_COLOR | DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_LESS);
psl->hair_pass = DRW_pass_create(
"Hair Pass",
DRW_STATE_WRITE_COLOR | DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_LESS | DRW_STATE_WIRE);
stl->storage->hair_ubo_current_id = 0;
memset(stl->storage->hair_shgrps, 0, sizeof(DRWShadingGroup *) * MAX_CLAY_MAT);
}