From fc0842593f0c5892bdb6b0cc95df2aeb3e449f5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 8 May 2020 17:27:18 +0200 Subject: USD: Export hair/particle system with name of system (and not its settings) Particle systems have two names: the name of the particle system itself, and the name of the particle system settings. The USD exporter used to use the latter name, and now switched to the former. This is to be in line with the Alembic exporter, as well as to give users more freedom in the naming (the particle system can have a unique name but still share settings from other particle systems). --- source/blender/io/usd/intern/abstract_hierarchy_iterator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/io') diff --git a/source/blender/io/usd/intern/abstract_hierarchy_iterator.cc b/source/blender/io/usd/intern/abstract_hierarchy_iterator.cc index 4911cb65e11..9d163222863 100644 --- a/source/blender/io/usd/intern/abstract_hierarchy_iterator.cc +++ b/source/blender/io/usd/intern/abstract_hierarchy_iterator.cc @@ -576,7 +576,7 @@ void AbstractHierarchyIterator::make_writers_particle_systems( HierarchyContext hair_context = *transform_context; hair_context.export_path = path_concatenate(transform_context->export_path, - get_id_name(&psys->part->id)); + make_valid_name(psys->name)); hair_context.particle_system = psys; AbstractHierarchyWriter *writer = nullptr; -- cgit v1.2.3