Orange; moved version patch for bone layers to 2.40, so orange branch can

read 2.40 files!
This commit is contained in:
2006-01-04 19:11:27 +00:00
parent 3f4aed3658
commit 1521012c18

View File

@@ -5207,6 +5207,17 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
}
}
if(main->versionfile <= 240) {
bArmature *arm;
/* updating layers still */
for(arm= main->armature.first; arm; arm= arm->id.next) {
bone_version_239(&arm->bonebase);
if(arm->layer==0) arm->layer= 1;
}
}
/* WATCH IT!!!: pointers from libdata have not been converted yet here! */
/* WATCH IT 2!: Userdef struct init has to be in src/usiblender.c! */