svn merge -r37335:37500 https://svn.blender.org/svnroot/bf-blender/trunk/blender
[blender.git] / source / blender / blenloader / intern / readfile.c
index d0b0f3aa1e38275588452ee8057a1eefaceb7471..0e975ab2d2fffe71a7e33a4f5c100f2ed916816d 100644 (file)
@@ -11713,6 +11713,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! */
        }
        
        /* WATCH IT!!!: pointers from libdata have not been converted yet here! */