diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2006-11-23 03:26:39 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2006-11-23 03:26:39 +0300 |
commit | d80b7cc5c40e531bd4b8c1099499cc944a513536 (patch) | |
tree | e52c2a2bacd74f21b7326da63898c4347dacdf69 /source/blender/blenkernel/intern/mesh.c | |
parent | 083c310d1fa98068fed88be58c7c7b982b0cb947 (diff) |
Fix for bug #5288:
Converting meta objects crashed, caused by new way of storing quads in
DispList for array drawing.
Diffstat (limited to 'source/blender/blenkernel/intern/mesh.c')
-rw-r--r-- | source/blender/blenkernel/intern/mesh.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/mesh.c b/source/blender/blenkernel/intern/mesh.c index 2da2e884032..0f1a571b4f3 100644 --- a/source/blender/blenkernel/intern/mesh.c +++ b/source/blender/blenkernel/intern/mesh.c @@ -772,8 +772,11 @@ void mball_to_mesh(ListBase *lb, Mesh *me) mface->v2= index[1]; mface->v3= index[2]; mface->v4= index[3]; - mface->flag = ME_SMOOTH; - + mface->flag= ME_SMOOTH; + + if(mface->v3==mface->v4) + mface->v4= 0; + mface++; index+= 4; } |