Fix for bug #9867: issues with making particle systems local.

This commit is contained in:
2008-04-30 13:29:57 +00:00
parent e997e6b1fc
commit 93ba2dd6a1
4 changed files with 10 additions and 4 deletions

View File

@@ -4783,6 +4783,7 @@ void make_local(int mode)
Base *base;
Object *ob;
bActionStrip *strip;
ParticleSystem *psys;
Material *ma, ***matarar;
Lamp *la;
Curve *cu;
@@ -4869,6 +4870,9 @@ void make_local(int mode)
make_local_armature ((bArmature *)id);
break;
}
for(psys=ob->particlesystem.first; psys; psys=psys->next)
make_local_particlesettings(psys->part);
}
id= (ID *)ob->ipo;
if(id && id->lib) make_local_ipo(ob->ipo);
@@ -4876,11 +4880,10 @@ void make_local(int mode)
id= (ID *)ob->action;
if(id && id->lib) make_local_action(ob->action);
for (strip=ob->nlastrips.first; strip; strip=strip->next) {
for(strip=ob->nlastrips.first; strip; strip=strip->next) {
if(strip->act && strip->act->id.lib)
make_local_action(strip->act);
}
}
base= base->next;
}