diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-08-19 10:24:08 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-08-19 10:26:32 +0300 |
commit | a3b151f341cd415ac48adb96c5b3d448ea2617fc (patch) | |
tree | 5a72871e632bbc899783f5aed8857ea0cbaf3e7c /source/blender/blenkernel/intern/subsurf_ccg.c | |
parent | bb479704d06218b94de431b60eb47ee15bf62c98 (diff) |
Fix for accessing looptri's from subsurf
Use poly count since tessfaces may be zero
Diffstat (limited to 'source/blender/blenkernel/intern/subsurf_ccg.c')
-rw-r--r-- | source/blender/blenkernel/intern/subsurf_ccg.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |