Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Mueller <nexyon@gmail.com>2010-06-19 14:50:23 +0400
committerJoerg Mueller <nexyon@gmail.com>2010-06-19 14:50:23 +0400
commit229b7639e72c5290b3be24747fafd14c7aeaf71b (patch)
treef5d7b7c8be775e4fd21aae1786ac6ee395957a63 /source/blender/blenloader/intern
parent615af47559f7c1bf0aa13011d21ed972f433613c (diff)
Merged revision 29562 from /branches/soc-2010-nexyon.
Diffstat (limited to 'source/blender/blenloader/intern')
-rw-r--r--source/blender/blenloader/intern/readfile.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 3ec253f1003..cff93978eff 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -138,7 +138,7 @@
#include "BKE_sequencer.h"
#include "BKE_texture.h" // for open_plugin_tex
#include "BKE_utildefines.h" // SWITCH_INT DATA ENDB DNA1 O_BINARY GLOB USER TEST REND
-
+#include "BKE_ipo.h"
#include "BKE_sound.h"
//XXX #include "BIF_butspace.h" // badlevel, for do_versions, patching event codes
@@ -9734,11 +9734,6 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
do_versions_gpencil_2_50(main, screen);
}
- /* old Animation System (using IPO's) needs to be converted to the new Animato system
- * (NOTE: conversion code in blenkernel/intern/ipo.c for now)
- */
- //do_versions_ipos_to_animato(main);
-
/* shader, composit and texture node trees have id.name empty, put something in
* to have them show in RNA viewer and accessible otherwise.
*/
@@ -10930,6 +10925,14 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
/* don't forget to set version number in blender.c! */
}
+static void do_versions_after_linking(FileData *fd, Library *lib, Main *main)
+{
+ /* old Animation System (using IPO's) needs to be converted to the new Animato system
+ */
+ if(main->versionfile < 250)
+ do_versions_ipos_to_animato(main);
+}
+
static void lib_link_all(FileData *fd, Main *main)
{
oldnewmap_sort(fd);
@@ -11076,6 +11079,7 @@ BlendFileData *blo_read_file_internal(FileData *fd, const char *filename)
blo_join_main(&fd->mainlist);
lib_link_all(fd, bfd->main);
+ do_versions_after_linking(fd, NULL, bfd->main);
lib_verify_nodetree(bfd->main, 1);
fix_relpaths_library(fd->relabase, bfd->main); /* make all relative paths, relative to the open blend file */