Fix draw manager draw-modes interfering with eachother

This commit is contained in:
Campbell Barton 2017-04-28 05:22:30 +10:00
parent a680bcd13b
commit 226b6e60b9
1 changed files with 5 additions and 0 deletions

View File

@ -1270,6 +1270,11 @@ static void draw_shgroup(DRWShadingGroup *shgroup)
draw_geometry(shgroup, call->geometry, call->obmat);
}
}
/* reset the state for the next group, note - we could only reset states we changed! */
if (shgroup->state != 0) {
DRW_state_reset();
}
}
void DRW_draw_pass(DRWPass *pass)