From 4608220c9b3c0adfdab3cd6994d29c0ced748794 Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Fri, 30 Aug 2019 12:35:09 +0200 Subject: Fix (unreported) 'Duplicate Particle System' operator not ensuring unique name This was leading to equally named particle systems, causing problems later on. Spotted while looking into T67958. Reviewers: brecht Differential Revision: https://developer.blender.org/D5632 --- source/blender/editors/physics/particle_object.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source') diff --git a/source/blender/editors/physics/particle_object.c b/source/blender/editors/physics/particle_object.c index bb8a31966ef..fbaf02b7b3f 100644 --- a/source/blender/editors/physics/particle_object.c +++ b/source/blender/editors/physics/particle_object.c @@ -1140,6 +1140,7 @@ static bool copy_particle_systems_to_object(const bContext *C, /* append to the object */ BLI_addtail(&ob_to->particlesystem, psys); + psys_unique_name(ob_to, psys, psys->name); /* add a particle system modifier for each system */ md = modifier_new(eModifierType_ParticleSystem); -- cgit v1.2.3