diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-05-08 14:42:39 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-06-19 11:24:51 +0300 |
commit | f106369ce8577aa9115fead1eff3acd34273a86b (patch) | |
tree | d75e24ce75af91a8a6c81ed7797c62cf6d265534 /source/blender/io/alembic/intern/abc_writer_hair.cc | |
parent | 0d744cf673e893bd1e44fa7fd91e916935a3ff45 (diff) |
Alembic: prevent spaces in names of exported particle systems
Other types already had spaces, periods, and colons replaced by
underscores. The upcoming Alembic exporter (based on the
`AbstractHierarcyIterator` class) will be more consistent and apply the
same naming rules everywhere. This is in preparation for that change.
The `get_…_name()` functions in `abc_util.{cc,h}` will be removed then.
Diffstat (limited to 'source/blender/io/alembic/intern/abc_writer_hair.cc')
-rw-r--r-- | source/blender/io/alembic/intern/abc_writer_hair.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/io/alembic/intern/abc_writer_hair.cc b/source/blender/io/alembic/intern/abc_writer_hair.cc index ed62889b03d..43c05627130 100644 --- a/source/blender/io/alembic/intern/abc_writer_hair.cc +++ b/source/blender/io/alembic/intern/abc_writer_hair.cc @@ -53,7 +53,8 @@ AbcHairWriter::AbcHairWriter(Object *ob, { m_psys = psys; - OCurves curves(parent->alembicXform(), psys->name, m_time_sampling); + std::string psys_name = get_valid_abc_name(psys->name); + OCurves curves(parent->alembicXform(), psys_name, m_time_sampling); m_schema = curves.getSchema(); } |