forked from bartvdbraak/blender
Plumiferos report: Appending objects with ipo drivers, didn't expand to
include the driver object.
This commit is contained in:
parent
af3f454cd8
commit
0950a40411
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user