Fix for ipo conversion on file transition in the game engine.

This commit is contained in:
Joerg Mueller 2010-07-08 17:47:46 +00:00
parent ce8942ddff
commit 3cef95cd93

@ -392,6 +392,12 @@ extern "C" void StartKetsjiShell(struct bContext *C, struct ARegion *ar, rcti *c
AUD_set3DSetting(AUD_3DS_DOPPLER_FACTOR, scene->audio.doppler_factor); AUD_set3DSetting(AUD_3DS_DOPPLER_FACTOR, scene->audio.doppler_factor);
AUD_set3DSetting(AUD_3DS_DISTANCE_MODEL, scene->audio.distance_model); AUD_set3DSetting(AUD_3DS_DISTANCE_MODEL, scene->audio.distance_model);
// from see blender.c:
// FIXME: this version patching should really be part of the file-reading code,
// but we still get too many unrelated data-corruption crashes otherwise...
if (blenderdata->versionfile < 250)
do_versions_ipos_to_animato(blenderdata);
if (sceneconverter) if (sceneconverter)
{ {
// convert and add scene // convert and add scene