Recommitted Erwin's change in version patching Bullet;

- code was on wrong location, all version patches should be grouped,
  otherwise we completely lose track!
- code didn't use the WOPHY_BULLET define...
- made more clear comment on meaning of version patch
This commit is contained in:
2006-05-15 09:52:59 +00:00
parent 90c10ab910
commit 3b783f1db8

View File

@@ -4448,22 +4448,8 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
for (wo = main->world.first; wo; wo= wo->id.next) {
wo->physicsEngine = 2;
}
} else
{
if(main->versionfile <= 241) {
World *wo;
/* Migrate to Bullet for recent games */
/* People can still explicitely choose for Sumo */
for (wo = main->world.first; wo; wo= wo->id.next) {
wo->physicsEngine = 5;
}
}
}
if(main->versionfile <= 227) {
Scene *sce;
Material *ma;
@@ -5320,10 +5306,18 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
Object *ob;
Tex *tex;
Scene *sce;
World *wo;
Lamp *la;
bArmature *arm;
bNodeTree *ntree;
/* Migrate to Bullet for games, except for the NaN versions */
/* People can still explicitely choose for Sumo (after 2.42 is out) */
if(main->versionfile > 225) {
for (wo = main->world.first; wo; wo= wo->id.next)
wo->physicsEngine = WOPHY_BULLET;
}
/* updating layers still */
for(arm= main->armature.first; arm; arm= arm->id.next) {
bone_version_239(&arm->bonebase);