Fix another index error, made multimaterial mapped meshes draw

incorrectly.
This commit is contained in:
Antonis Ryakiotakis 2015-07-17 15:15:53 +02:00
parent 7c06167982
commit 955c13d614
1 changed files with 1 additions and 1 deletions

View File

@ -739,7 +739,7 @@ static void cdDM_drawMappedFaces(
if (i != totpoly - 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))
draw_option = setDrawOptions(userData, orig);