diff options
Diffstat (limited to 'source/blender/editors/object/object_relations.c')
-rw-r--r-- | source/blender/editors/object/object_relations.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_relations.c b/source/blender/editors/object/object_relations.c index 088ade6963d..d30022c01f8 100644 --- a/source/blender/editors/object/object_relations.c +++ b/source/blender/editors/object/object_relations.c @@ -43,6 +43,7 @@ #include "DNA_lattice_types.h" #include "DNA_material_types.h" #include "DNA_meta_types.h" +#include "DNA_particle_types.h" #include "DNA_scene_types.h" #include "DNA_world_types.h" #include "DNA_object_types.h" @@ -2214,6 +2215,7 @@ static int make_local_exec(bContext *C, wmOperator *op) Main *bmain = CTX_data_main(C); Scene *scene = CTX_data_scene(C); AnimData *adt; + ParticleSystem *psys; Material *ma, ***matarar; Lamp *la; ID *id; @@ -2280,6 +2282,9 @@ static int make_local_exec(bContext *C, wmOperator *op) } } + for (psys = ob->particlesystem.first; psys; psys = psys->next) + id_make_local(bmain, &psys->part->id, false, false); + adt = BKE_animdata_from_id(&ob->id); if (adt) BKE_animdata_make_local(adt); } |