diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-02-14 17:21:19 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-02-14 17:41:17 +0300 |
commit | 7c5a44c71f13ef00067f5c5951a275eb2eab2eef (patch) | |
tree | b6863c96d32b1f0a63df2713c795372a2a11c483 /source/blender/blenkernel/intern/constraint.c | |
parent | f457dc122d1d58f5e0e35db746104b69332597b0 (diff) |
Alembic: refactor import and export of transformations
The Alembic importer now works with local coordinates. Previously, the
importer converted transformations from Alembic to world coordinates
before processing them further; this processing often included
re-converting to local coordinates. This change made it possible to
remove some code that assumed that a child transform was only read after
its parent transform.
Blender's Alembic code follows the Maya convention, where in the zero
orientation the camera looks forward instead of down. This extra
rotation is now handled more consistently, and now also properly handles
children of cameras. This fixes T73269.
Unit tests were added to at least ensure that the importer and exporter
are compatible with each other, and that static and animated camera
transforms are handled in the same way.
Diffstat (limited to 'source/blender/blenkernel/intern/constraint.c')
-rw-r--r-- | source/blender/blenkernel/intern/constraint.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c index 76acaf5c91c..42efd9a7057 100644 --- a/source/blender/blenkernel/intern/constraint.c +++ b/source/blender/blenkernel/intern/constraint.c @@ -5271,6 +5271,9 @@ static bConstraint *add_new_constraint(Object *ob, } break; } + case CONSTRAINT_TYPE_TRANSFORM_CACHE: + con->ownspace = CONSTRAINT_SPACE_LOCAL; + break; } return con; |