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 /tests/python | |
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 'tests/python')
-rw-r--r-- | tests/python/alembic_tests.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/python/alembic_tests.py b/tests/python/alembic_tests.py index fbb9496c9df..ec290001a6f 100644 --- a/tests/python/alembic_tests.py +++ b/tests/python/alembic_tests.py @@ -280,10 +280,10 @@ class HairParticlesExportTest(AbstractAlembicTest): def test_with_both(self, tempdir: pathlib.Path): abc = self._do_test(tempdir, True, True) - abcprop = self.abcprop(abc, '/Suzanne/Hair system/.geom') + abcprop = self.abcprop(abc, '/Suzanne/Hair_system/.geom') self.assertIn('nVertices', abcprop) - abcprop = self.abcprop(abc, '/Suzanne/Non-hair particle system/.geom') + abcprop = self.abcprop(abc, '/Suzanne/Non-hair_particle_system/.geom') self.assertIn('.velocities', abcprop) abcprop = self.abcprop(abc, '/Suzanne/MonkeyMesh/.geom') @@ -293,11 +293,11 @@ class HairParticlesExportTest(AbstractAlembicTest): def test_with_hair_only(self, tempdir: pathlib.Path): abc = self._do_test(tempdir, True, False) - abcprop = self.abcprop(abc, '/Suzanne/Hair system/.geom') + abcprop = self.abcprop(abc, '/Suzanne/Hair_system/.geom') self.assertIn('nVertices', abcprop) self.assertRaises(AbcPropError, self.abcprop, abc, - '/Suzanne/Non-hair particle system/.geom') + '/Suzanne/Non-hair_particle_system/.geom') abcprop = self.abcprop(abc, '/Suzanne/MonkeyMesh/.geom') self.assertIn('.faceIndices', abcprop) @@ -306,9 +306,9 @@ class HairParticlesExportTest(AbstractAlembicTest): def test_with_particles_only(self, tempdir: pathlib.Path): abc = self._do_test(tempdir, False, True) - self.assertRaises(AbcPropError, self.abcprop, abc, '/Suzanne/Hair system/.geom') + self.assertRaises(AbcPropError, self.abcprop, abc, '/Suzanne/Hair_system/.geom') - abcprop = self.abcprop(abc, '/Suzanne/Non-hair particle system/.geom') + abcprop = self.abcprop(abc, '/Suzanne/Non-hair_particle_system/.geom') self.assertIn('.velocities', abcprop) abcprop = self.abcprop(abc, '/Suzanne/MonkeyMesh/.geom') @@ -318,9 +318,9 @@ class HairParticlesExportTest(AbstractAlembicTest): def test_with_neither(self, tempdir: pathlib.Path): abc = self._do_test(tempdir, False, False) - self.assertRaises(AbcPropError, self.abcprop, abc, '/Suzanne/Hair system/.geom') + self.assertRaises(AbcPropError, self.abcprop, abc, '/Suzanne/Hair_system/.geom') self.assertRaises(AbcPropError, self.abcprop, abc, - '/Suzanne/Non-hair particle system/.geom') + '/Suzanne/Non-hair_particle_system/.geom') abcprop = self.abcprop(abc, '/Suzanne/MonkeyMesh/.geom') self.assertIn('.faceIndices', abcprop) |