fix for crash loading durian file '08.5e_comp.blend' - external data pointer for...
authorCampbell Barton <ideasman42@gmail.com>
Tue, 2 Oct 2012 00:54:41 +0000 (00:54 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 2 Oct 2012 00:54:41 +0000 (00:54 +0000)
source/blender/blenkernel/intern/mesh.c

index e45a052db4d7b392562b82df08eeb5dfee28d167..1aaeebf5109cb8e15519157659e5668888912221 100644 (file)
@@ -2043,7 +2043,7 @@ static void bm_corners_to_loops_ex(ID *id, CustomData *fdata, CustomData *ldata,
                int side, corners;
 
                if (CustomData_external_test(fdata, CD_MDISPS)) {
-                       if (id) {
+                       if (id && fdata->external) {
                                CustomData_external_add(ldata, id, CD_MDISPS,
                                                        totloop, fdata->external->filename);
                        }