armature ghost stepsize was not initialized, Aligorith: can you check this is correct?
[blender.git] / source / blender / blenloader / intern / readfile.c
index 8f127fc65cf20dbd7175215d15c147187d05b33a..88c120dc1e15176b5e1609df0cd0eb02481230ce 100644 (file)
 #include "BLI_storage_types.h" // for relname flags
 
 #include "BKE_animsys.h"
+#include "BKE_anim.h"
 #include "BKE_action.h"
 #include "BKE_armature.h"
 #include "BKE_brush.h"
@@ -10341,7 +10342,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 ---------------- */