Fix draw manager out of bounds assignment

This commit is contained in:
Campbell Barton
2018-10-11 09:29:23 +11:00
parent 0f147bf6d6
commit 59e4935266

View File

@@ -357,7 +357,7 @@ static DRWCallState *drw_call_state_create(DRWShadingGroup *shgroup, float (*obm
{
random = BLI_hash_int_2d(BLI_hash_string(ob->id.name + 2), 0);
}
state->objectinfo[2] = random * (1.0f / (float)0xFFFFFFFF);
state->objectinfo[1] = random * (1.0f / (float)0xFFFFFFFF);
state->matflag &= ~DRW_CALL_OBJECTINFO;
}