[Bf-blender-cvs] [064bf63ac18] temp-angavrilov-constraints: tweak: copy transforms
Alexander Gavrilov
noreply at git.blender.org
Wed Dec 2 18:25:38 CET 2020
Commit: 064bf63ac18dfcc8d31c12c2b9e8defec4797851
Author: Alexander Gavrilov
Date: Wed Dec 2 12:12:55 2020 +0300
Branches: temp-angavrilov-constraints
https://developer.blender.org/rB064bf63ac18dfcc8d31c12c2b9e8defec4797851
tweak: copy transforms
===================================================================
M source/blender/editors/transform/transform_convert.c
===================================================================
diff --git a/source/blender/editors/transform/transform_convert.c b/source/blender/editors/transform/transform_convert.c
index c23ee5b771c..7427da663fb 100644
--- a/source/blender/editors/transform/transform_convert.c
+++ b/source/blender/editors/transform/transform_convert.c
@@ -815,10 +815,13 @@ bool constraints_list_needinv(TransInfo *t, ListBase *list)
/* Copy Transforms constraint only does this in the Before mode. */
bTransLikeConstraint *data = (bTransLikeConstraint *)con->data;
- if (ELEM(data->mix_mode, TRANSLIKE_MIX_BEFORE) &&
+ if (ELEM(data->mix_mode, TRANSLIKE_MIX_BEFORE, TRANSLIKE_MIX_BEFORE_FULL) &&
ELEM(t->mode, TFM_ROTATION, TFM_TRANSLATION)) {
return true;
}
+ if (ELEM(data->mix_mode, TRANSLIKE_MIX_BEFORE_SPLIT) && ELEM(t->mode, TFM_ROTATION)) {
+ return true;
+ }
}
else if (con->type == CONSTRAINT_TYPE_ACTION) {
/* The Action constraint only does this in the Before mode. */
More information about the Bf-blender-cvs
mailing list