diff options
author | Ton Roosendaal <ton@blender.org> | 2003-11-25 16:44:46 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2003-11-25 16:44:46 +0300 |
commit | e0c13fcb4495efa139eb2470d29c7f51015b9354 (patch) | |
tree | bee1c8f238a80f3fecefd9fb4fc802286cf958df /source/blender/blenloader | |
parent | 4b2e1c324594fb40d26cf61eba0e91bea894d4e1 (diff) |
- moved do_versions stuff for 2.30 release, to also check 2.30 files.
this is safe initialization only.
based at report from madprof.. he had a 2.30 file without this
data correctly initialized... but how it happens? tuhopuu files?
anyhoo, we might think of splitting do_versions in 2 parts:
1. do_versions initialization of old variables that changed
like physics properties that need to be scaled or so
2. do_init for newly created variables that are not allowed to be zero,
this can safely be done for each file
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index ee3dd5b4131..5987f03a198 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -3902,8 +3902,12 @@ static void do_versions(Main *main) } } } - - if(main->versionfile <= 229) { + /* ton: made this 230 instead of 229, + to be sure (tuho files) and this is a reliable check anyway + nevertheless, we might need to think over a fitness (initialize) + check apart from the do_versions() */ + + if(main->versionfile <= 230) { bScreen *sc; // new variable blockscale, for panels in any area |