diff options
author | Joseph Eagar <joeedh@gmail.com> | 2011-06-05 05:06:44 +0400 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2011-06-05 05:06:44 +0400 |
commit | 522f9111a56268f2155c93d562abad86c1883332 (patch) | |
tree | 5ab2db0bc4a016fbd80f92df29cf84a8a8ab85a1 /source/blender | |
parent | e40debc51b4d40d13d0cd6c7cda343310a7f184f (diff) |
=bmesh= sortof fixed subsurf crasher, need to do it properly still but at least it doesn't crash anymore.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/subsurf_ccg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/subsurf_ccg.c b/source/blender/blenkernel/intern/subsurf_ccg.c index a81c0d71cf4..6ce299187f2 100644 --- a/source/blender/blenkernel/intern/subsurf_ccg.c +++ b/source/blender/blenkernel/intern/subsurf_ccg.c @@ -2814,8 +2814,8 @@ static CCGDerivedMesh *getCCGDerivedMesh(CCGSubSurf *ss, ccgdm->faceMap[index].startEdge = edgeNum; ccgdm->faceMap[index].startFace = faceNum; - faceFlags[0] = mpoly[origIndex].flag; - faceFlags[1] = mpoly[origIndex].mat_nr; + faceFlags[0] = mpoly ? mpoly[origIndex].flag : 0; + faceFlags[1] = mpoly ? mpoly[origIndex].mat_nr : 0; faceFlags += 2; /* set the face base vert */ |