[Bf-blender-cvs] [955c13d] master: Fix another index error, made multimaterial mapped meshes draw incorrectly.
Antony Riakiotakis
noreply at git.blender.org
Fri Jul 17 15:16:25 CEST 2015
Commit: 955c13d61413ea185f300f3ed64fee4b5785db0e
Author: Antony Riakiotakis
Date: Fri Jul 17 15:15:53 2015 +0200
Branches: master
https://developer.blender.org/rB955c13d61413ea185f300f3ed64fee4b5785db0e
Fix another index error, made multimaterial mapped meshes draw
incorrectly.
===================================================================
M source/blender/blenkernel/intern/cdderivedmesh.c
===================================================================
diff --git a/source/blender/blenkernel/intern/cdderivedmesh.c b/source/blender/blenkernel/intern/cdderivedmesh.c
index 6880c1c..d5cdc50 100644
--- a/source/blender/blenkernel/intern/cdderivedmesh.c
+++ b/source/blender/blenkernel/intern/cdderivedmesh.c
@@ -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);
More information about the Bf-blender-cvs
mailing list