Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Wiggin <ender79bl@gmail.com>2011-11-13 19:13:59 +0400
committerAndrew Wiggin <ender79bl@gmail.com>2011-11-13 19:13:59 +0400
commit2266c7fc1cc675fe7465459e31d434bcd15e3d14 (patch)
tree7440bdeba9149f672a2aa726894dc3f190b9043e /source/blender/editors/space_view3d/drawmesh.c
parentc0934795cb50d107a769e258b122c4c5b7cbad69 (diff)
Add CD_POLYINDEX layer to reduce need for retesselations
Diffstat (limited to 'source/blender/editors/space_view3d/drawmesh.c')
-rw-r--r--source/blender/editors/space_view3d/drawmesh.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/drawmesh.c b/source/blender/editors/space_view3d/drawmesh.c
index 2a430f4c520..2d65a8155d0 100644
--- a/source/blender/editors/space_view3d/drawmesh.c
+++ b/source/blender/editors/space_view3d/drawmesh.c
@@ -512,6 +512,8 @@ static int draw_tface_mapped__set_draw(void *userData, int index)
MTFace mtf;
int matnr = me->mpoly[index].mat_nr;
+ BLI_assert(index >= 0 && index < me->totpoly);
+
if (mpoly && mpoly->flag&ME_HIDE) return 0;
memset(&mtf, 0, sizeof(mtf));