fix for crash in recent ghost/do_versions
authorCampbell Barton <ideasman42@gmail.com>
Fri, 1 Jan 2010 14:04:39 +0000 (14:04 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 1 Jan 2010 14:04:39 +0000 (14:04 +0000)
source/blender/blenloader/intern/readfile.c

index 8f127fc65cf20dbd7175215d15c147187d05b33a..6717bb2b89c14eeefc1bf7e7870804c067cbb9b6 100644 (file)
@@ -10341,7 +10341,7 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
                        
                        /* if armature, copy settings for pose from armature data */
                        if (ob->pose && ob->data) {
-                               bArmature *arm= (bArmature *)ob->data;
+                               bArmature *arm= newlibadr(fd, lib, ob->data);
                                bAnimVizSettings *avs= &ob->pose->avs;
                                
                                /* ghosting settings ---------------- */