From a3b151f341cd415ac48adb96c5b3d448ea2617fc Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 19 Aug 2015 17:24:08 +1000 Subject: [PATCH] Fix for accessing looptri's from subsurf Use poly count since tessfaces may be zero --- source/blender/blenkernel/intern/subsurf_ccg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/blenkernel/intern/subsurf_ccg.c b/source/blender/blenkernel/intern/subsurf_ccg.c index bd5a2f7b4f9..e1b18d59b31 100644 --- a/source/blender/blenkernel/intern/subsurf_ccg.c +++ b/source/blender/blenkernel/intern/subsurf_ccg.c @@ -4016,7 +4016,7 @@ static const MLoopTri *ccgDM_getLoopTriArray(DerivedMesh *dm) } else { MLoopTri *mlooptri; - const int tottri = dm->numTessFaceData * 2; + const int tottri = dm->numPolyData * 2; int i, poly_index; DM_ensure_looptri_data(dm);