From 0950a40411944b05ca202fa30a57b289ab9e1ba3 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Thu, 8 Jun 2006 19:26:08 +0000 Subject: [PATCH] Plumiferos report: Appending objects with ipo drivers, didn't expand to include the driver object. --- source/blender/blenloader/intern/readfile.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index e41a3df4628..698204ac6bb 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -5694,6 +5694,15 @@ static void expand_doit(FileData *fd, Main *mainvar, void *old) } } +static void expand_ipo(FileData *fd, Main *mainvar, Ipo *ipo) +{ + IpoCurve *icu; + for(icu= ipo->curve.first; icu; icu= icu->next) { + if(icu->driver) + expand_doit(fd, mainvar, icu->driver->ob); + } +} + static void expand_group(FileData *fd, Main *mainvar, Group *group) { GroupObject *go; @@ -6178,6 +6187,9 @@ static void expand_main(FileData *fd, Main *mainvar) case ID_NT: expand_nodetree(fd, mainvar, (bNodeTree *)id); break; + case ID_IP: + expand_ipo(fd, mainvar, (Ipo *)id); + break; } doit= 1;