DRW: DRWCallState: Fix matflag being overwritten by other engines.

This commit is contained in:
Clément Foucault
2018-03-01 03:40:14 +01:00
parent 725112cce7
commit 5d0665d435

View File

@@ -282,6 +282,10 @@ static DRWCallState *drw_call_state_object(DRWShadingGroup *shgroup, float (*obm
if (DST.ob_state == NULL) {
DST.ob_state = drw_call_state_create(shgroup, obmat, ob_data);
}
else {
/* If the DRWCallState is reused, add necessary matrices. */
DST.ob_state->matflag |= shgroup->matflag;
}
return DST.ob_state;
}