svn merge -r37035:37078 https://svn.blender.org/svnroot/bf-blender/trunk/blender
[blender.git] / source / blender / blenloader / intern / readfile.c
index 624722d70dc29c57d84d0f80a5fbed54a90f454f..614144028af84de3fa15c379abe793676a276c3a 100644 (file)
@@ -1725,6 +1725,7 @@ static void lib_link_fcurves(FileData *fd, ID *id, ListBase *list)
 static void direct_link_fmodifiers(FileData *fd, ListBase *list)
 {
        FModifier *fcm;
+       int a;
        
        for (fcm= list->first; fcm; fcm= fcm->next) {
                /* relink general data */
@@ -1738,6 +1739,11 @@ static void direct_link_fmodifiers(FileData *fd, ListBase *list)
                                FMod_Generator *data= (FMod_Generator *)fcm->data;
                                
                                data->coefficients= newdataadr(fd, data->coefficients);
+
+                               if(fd->flags & FD_FLAGS_SWITCH_ENDIAN) {
+                                       for(a = 0; a < data->arraysize; a++)
+                                               SWITCH_INT(data->coefficients[a]);
+                               }
                        }
                                break;
                        case FMODIFIER_TYPE_ENVELOPE: