Merging r37437 through r37478 from trunk into soc-2011-tomato
[blender.git] / source / blender / blenloader / intern / readfile.c
index 726e13372a7ae33caa9e840eddc6fce00876511c..c8ea7a081a3091d23539eec725b3c0dd019bc3b4 100644 (file)
@@ -11758,6 +11758,21 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
                                }
                        }
                }
+
+               {
+                       /* add default value for behind strength of camera actuator */
+                       Object *ob;
+                       bActuator *act;
+                       for(ob = main->object.first; ob; ob= ob->id.next) {
+                               for(act= ob->actuators.first; act; act= act->next) {
+                                       if (act->type == ACT_CAMERA) {
+                                               bCameraActuator *ba= act->data;
+
+                                               ba->damping = 1.0/32.0;
+                                       }
+                               }
+                       }
+               }
        }
        
        /* WATCH IT!!!: pointers from libdata have not been converted yet here! */