diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-06-19 11:24:57 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-06-19 11:24:57 +0300 |
commit | 2dff08c8ce9b9ce7511328cbe107d26a9539c38a (patch) | |
tree | 773c39810e8bcba57038b31ac0efde6d7561b21c /tests/python/alembic_tests.py | |
parent | f106369ce8577aa9115fead1eff3acd34273a86b (diff) |
Alembic: always export transforms as inheriting
Blender now always exports transforms as as "inheriting", as Blender has
no concept of parenting without inheriting the transform.
Previously only objects with an actual parent were marked as
"inheriting", and parentless objects as "non-inheriting". However,
certain packages (for example USD's Alembic plugin) are incompatible
with non-inheriting transforms and will completely ignore such
transforms, placing all such objects at the world origin.
When importing non-inheriting transforms from Alembic, Blender will
break the parent-child relation and thus force the child to (correctly)
interpret the transform as world matrix.
Diffstat (limited to 'tests/python/alembic_tests.py')
-rw-r--r-- | tests/python/alembic_tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/python/alembic_tests.py b/tests/python/alembic_tests.py index ec290001a6f..705bb98a060 100644 --- a/tests/python/alembic_tests.py +++ b/tests/python/alembic_tests.py @@ -194,7 +194,7 @@ class HierarchicalAndFlatExportTest(AbstractAlembicTest): # Now check the resulting Alembic file. xform = self.abcprop(abc, '/Cube_012/.xform') - self.assertEqual(0, xform['.inherits']) + self.assertEqual(1, xform['.inherits'], "Blender transforms always inherit") self.assertAlmostEqualFloatArray( xform['.vals'], @@ -233,7 +233,7 @@ class DupliGroupExportTest(AbstractAlembicTest): # Now check the resulting Alembic file. xform = self.abcprop(abc, '/Suzanne/.xform') - self.assertEqual(0, xform['.inherits']) + self.assertEqual(1, xform['.inherits']) self.assertAlmostEqualFloatArray( xform['.vals'], |