Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2019-08-30 13:35:09 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2019-08-30 15:07:59 +0300
commit4608220c9b3c0adfdab3cd6994d29c0ced748794 (patch)
treed270344f804c980f70fd2ea2e781249f52e476b4 /source/blender/editors/physics/particle_object.c
parentb9ed30c25c703c479dddab1ad6fec2adba558335 (diff)
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
Diffstat (limited to 'source/blender/editors/physics/particle_object.c')
-rw-r--r--source/blender/editors/physics/particle_object.c1
1 files changed, 1 insertions, 0 deletions
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);