diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-02-02 21:24:10 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-02-02 21:24:10 +0300 |
commit | 104f46afdd4f2b3f66a73ddc14582bcb2854ef36 (patch) | |
tree | a18ade33270d55820dd3df58649b0c1892451e9d /source/blender/blenloader | |
parent | 21f1625fd537ea439e464e1d2cbd12ad770526ee (diff) |
linking in mesh data with animation crashed blender. also fixed some warnings.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index bdd0d89410d..051bc1851b8 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -3310,6 +3310,7 @@ static void lib_link_mesh(FileData *fd, Main *main) /*Link ID Properties -- and copy this comment EXACTLY for easy finding of library blocks that implement this.*/ if (me->id.properties) IDP_LibLinkProperty(me->id.properties, (fd->flags & FD_FLAGS_SWITCH_ENDIAN), fd); + if (me->adt) lib_link_animdata(fd, &me->id, me->adt); /* this check added for python created meshes */ if(me->mat) { @@ -3397,6 +3398,9 @@ static void direct_link_mesh(FileData *fd, Mesh *mesh) mesh->msticky= newdataadr(fd, mesh->msticky); mesh->dvert= newdataadr(fd, mesh->dvert); + mesh->adt= newdataadr(fd, mesh->adt); + direct_link_animdata(fd, mesh->adt); + /* Partial-mesh visibility (do this before using totvert, totface, or totedge!) */ mesh->pv= newdataadr(fd, mesh->pv); if(mesh->pv) { |