svn merge -r 37212:37306 https://svn.blender.org/svnroot/bf-blender/trunk/blender
[blender-staging.git] / source / blender / blenloader / intern / readfile.c
index 384c2782d36be5f727ba02e5e6b2d91bd7244967..53d4ceec4e1f3c77ac038f7cb738835b5df68144 100644 (file)
@@ -1723,7 +1723,6 @@ 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 */
@@ -1739,6 +1738,7 @@ static void direct_link_fmodifiers(FileData *fd, ListBase *list)
                                data->coefficients= newdataadr(fd, data->coefficients);
 
                                if(fd->flags & FD_FLAGS_SWITCH_ENDIAN) {
+                                       unsigned int a;
                                        for(a = 0; a < data->arraysize; a++)
                                                SWITCH_INT(data->coefficients[a]);
                                }