[Bf-blender-cvs] [4608220c9b3] master: Fix (unreported) 'Duplicate Particle System' operator not ensuring unique name
Philipp Oeser
noreply at git.blender.org
Fri Aug 30 14:10:23 CEST 2019
Commit: 4608220c9b3c0adfdab3cd6994d29c0ced748794
Author: Philipp Oeser
Date: Fri Aug 30 12:35:09 2019 +0200
Branches: master
https://developer.blender.org/rB4608220c9b3c0adfdab3cd6994d29c0ced748794
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
===================================================================
M source/blender/editors/physics/particle_object.c
===================================================================
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);
More information about the Bf-blender-cvs
mailing list