svn merge ^/trunk/blender -r43564:43609
[blender.git] / source / blender / blenloader / intern / readfile.c
index 724d6ee2795a0b17d692dd57e42ed85a7d4ca203..91d85d4519fc215078b00d3f3da1f11d8a968a67 100644 (file)
@@ -13099,6 +13099,23 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
                }
        }
        
+       if (main->versionfile < 261 || (main->versionfile == 261 && main->subversionfile < 4))
+       {
+               {
+                       /* set fluidsim rate */
+                       Object *ob;
+                       for (ob = main->object.first; ob; ob = ob->id.next) {
+                               ModifierData *md;
+                               for (md = ob->modifiers.first; md; md = md->next) {
+                                       if (md->type == eModifierType_Fluidsim) {
+                                               FluidsimSettings *fss = (FluidsimSettings *)md;
+                                               fss->animRate = 1.0f;
+                                       }
+                               }
+                       }
+               }
+       }
+       
        /* put compatibility code here until next subversion bump */
        {
        }