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).
This commit is contained in:
Sybren A. Stüvel 2020-05-08 17:27:18 +02:00
parent d359a84430
commit fc0842593f
1 changed files with 1 additions and 1 deletions

View File

@ -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;