diff options
author | Ton Roosendaal <ton@blender.org> | 2003-10-25 23:17:24 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2003-10-25 23:17:24 +0400 |
commit | 7326fa933bf2164ba42109f4ca64b71419fb958a (patch) | |
tree | fcc81ba2b352ec9f504aa4aa65d5fbfc669748ef /source/blender/blenkernel | |
parent | ce60c3edc1b435e377b7cb8401c62cd192dd8b48 (diff) |
- fixed crash with ALT+C conversion of subsurf to mesh with subdiv level 0
- also changed the limits in the subdiv levels buttons; ranging now 1-6
(note: '6' gives 16k new faces per old face... and max was 12!)
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/subsurf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/subsurf.c b/source/blender/blenkernel/intern/subsurf.c index 613cc69d9f7..2a2723686df 100644 --- a/source/blender/blenkernel/intern/subsurf.c +++ b/source/blender/blenkernel/intern/subsurf.c @@ -948,7 +948,7 @@ void subsurf_make_mesh(Object *ob, short subdiv) { void subsurf_to_mesh(Object *oldob, Mesh *me) { Mesh *oldme= oldob->data; - if (oldme->totface) { + if (oldme->totface && oldme->subdiv) { HyperMesh *hme= hypermesh_from_mesh(oldme, NULL); DispList *dl= subsurf_subdivide_to_displist(hme, oldme->subdiv, oldme->flag); DispListMesh *dlm= dl->mesh; |