From b080de79db301da32efc766122b433077fa560e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Mon, 9 Mar 2020 18:22:49 +0100 Subject: Alembic: constraint for transform animation is using world matrix again In rB7c5a44c71f13 I changed the way transform matrices are loaded from Alembic. Instead of having the Alembic importer convert matrices from local (in the Alembic file) to World (to pass to the constraint handling the animation of transforms), I set the constraint space to `CONSTRAINT_SPACE_LOCAL`. This worked thanks to rB7728bfd4c45c. However, that commit was reverted, which meant that for parentless objects `CONSTRAINT_SPACE_LOCAL` no longer means "local space". The situation is resolved by setting the constraint to world space again, and computing the world matrix in the Alembic importer. --- source/blender/blenkernel/intern/constraint.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'source/blender/blenkernel/intern/constraint.c') diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c index 9719704967e..f38810322a8 100644 --- a/source/blender/blenkernel/intern/constraint.c +++ b/source/blender/blenkernel/intern/constraint.c @@ -5314,9 +5314,6 @@ static bConstraint *add_new_constraint(Object *ob, } break; } - case CONSTRAINT_TYPE_TRANSFORM_CACHE: - con->ownspace = CONSTRAINT_SPACE_LOCAL; - break; } return con; -- cgit v1.2.3