Fix for ipo conversion on file transition in the game engine.
authorJoerg Mueller <nexyon@gmail.com>
Thu, 8 Jul 2010 17:47:46 +0000 (17:47 +0000)
committerJoerg Mueller <nexyon@gmail.com>
Thu, 8 Jul 2010 17:47:46 +0000 (17:47 +0000)
source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp

index a83ec7e..c4375ea 100644 (file)
@@ -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_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)
                        {
                                // convert and add scene