diff options
author | Daniel Dunbar <daniel@zuster.org> | 2005-07-15 00:42:43 +0400 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2005-07-15 00:42:43 +0400 |
commit | 0b890467901a32543b874be8eb93a55dff6d3538 (patch) | |
tree | c45eaafd1646cd91922c5e7e6ba9351dd2d4f9d6 /source/blender | |
parent | fc0c2ef2513192f677141dfcd802f2343f7f465e (diff) |
- incremental subsurf calc in mesh_changed didn't actually make sure
mesh used subsurf before calc (led to crash when subdiv==0). Woops!
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/displist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/displist.c b/source/blender/blenkernel/intern/displist.c index 717aa14046f..55eaf43ab40 100644 --- a/source/blender/blenkernel/intern/displist.c +++ b/source/blender/blenkernel/intern/displist.c @@ -1626,7 +1626,7 @@ void mesh_changed(Object *meshOb) * because it is used for incremental). Just need to add a * flag at some point. - zr */ - if (G.obedit && meshOb->data==G.obedit->data) { + if (G.obedit && meshOb->data==G.obedit->data && mesh_uses_displist(me)) { G.editMesh->derived= subsurf_make_derived_from_editmesh(G.editMesh, me->subdiv, me->subsurftype, G.editMesh->derived); } } |