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:
authorJoshua Leung <aligorith@gmail.com>2009-06-19 15:17:56 +0400
committerJoshua Leung <aligorith@gmail.com>2009-06-19 15:17:56 +0400
commit42e60acce669a425a3ce3a588a2bd649cd6963eb (patch)
tree0ce94224c2be93a7cf432edf8793a70c9fbb7089
parentdb27ab918d6d6f429b03fc99a9567eee5c038f70 (diff)
Animato - Conversions Bugfix
Object actions are now converted before object ipo's so that if both of them exist, the Action can still preserve its name.
-rw-r--r--source/blender/blenkernel/intern/ipo.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/blenkernel/intern/ipo.c b/source/blender/blenkernel/intern/ipo.c
index e4c366dd3d7..a6aac096814 100644
--- a/source/blender/blenkernel/intern/ipo.c
+++ b/source/blender/blenkernel/intern/ipo.c
@@ -1515,14 +1515,7 @@ void do_versions_ipos_to_animato(Main *main)
/* Add AnimData block */
adt= BKE_id_add_animdata(id);
- /* IPO first */
- if (ob->ipo) {
- ipo_to_animdata(id, ob->ipo, NULL, NULL);
- ob->ipo->id.us--;
- ob->ipo= NULL;
- }
-
- /* now Action */
+ /* Action first - so that Action name get conserved */
if (ob->action) {
action_to_animdata(id, ob->action);
@@ -1533,6 +1526,13 @@ void do_versions_ipos_to_animato(Main *main)
}
}
+ /* IPO second... */
+ if (ob->ipo) {
+ ipo_to_animdata(id, ob->ipo, NULL, NULL);
+ ob->ipo->id.us--;
+ ob->ipo= NULL;
+ }
+
/* finally NLA */
// XXX todo... for now, new NLA code not hooked up yet, so keep old stuff (but not for too long!)
}