Fix another index error, made multimaterial mapped meshes draw

incorrectly.
This commit is contained in:
Antony Riakiotakis 2015-07-17 15:15:53 +02:00
parent 7c06167982
commit 955c13d614

@ -739,7 +739,7 @@ static void cdDM_drawMappedFaces(
if (i != totpoly - 1) if (i != totpoly - 1)
next_actualFace = bufmat->polys[i + 1]; next_actualFace = bufmat->polys[i + 1];
orig = (index_mp_to_orig) ? index_mp_to_orig[i] : i; orig = (index_mp_to_orig) ? index_mp_to_orig[actualFace] : actualFace;
if (setDrawOptions != NULL && (orig != ORIGINDEX_NONE)) if (setDrawOptions != NULL && (orig != ORIGINDEX_NONE))
draw_option = setDrawOptions(userData, orig); draw_option = setDrawOptions(userData, orig);