Bugfix: converting multires with 0 levels would crash.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 14 Dec 2009 15:40:47 +0000 (15:40 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 14 Dec 2009 15:40:47 +0000 (15:40 +0000)
source/blender/blenkernel/intern/multires.c

index e1f2b22c9f0ca0c45fd327d1af85827a96db44b6..66f8da03d249ea993f059bf2f123791181a27555 100644 (file)
@@ -796,7 +796,8 @@ void multires_load_old_250(Mesh *me)
 
        if(mdisps) {
                for(a=0; a<me->totface; a++)
-                       old_mdisps_convert(&me->mface[a], &mdisps[a]);
+                       if(mdisps[a].totdisp)
+                               old_mdisps_convert(&me->mface[a], &mdisps[a]);
        }
 }