Fix #28865: Draw_bounds_type does not display Polyhedron or Capsule types
[blender.git] / source / blender / blenloader / intern / readfile.c
index ea8e8f30d76fe1366a1686fab52cb55e6fb50787..678d0e1406f4ebbbc521cd59f909b1d91a69a607 100644 (file)
@@ -12157,8 +12157,13 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
 
        }
 
-       /* put compatibility code here until next subversion bump */
-       {
+       if (main->versionfile < 260 || (main->versionfile == 260 && main->subversionfile < 1)){
+               Object *ob;
+
+               for (ob= main->object.first; ob; ob= ob->id.next) {
+                       ob->collision_boundtype= ob->boundtype;
+               }
+
                {
                        Camera *cam;
                        for(cam= main->camera.first; cam; cam= cam->id.next) {
@@ -12171,6 +12176,11 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
                }
        }
 
+       /* put compatibility code here until next subversion bump */
+       {
+               
+       }
+
        /* WATCH IT!!!: pointers from libdata have not been converted yet here! */
        /* WATCH IT 2!: Userdef struct init has to be in editors/interface/resources.c! */