[Bf-blender-cvs] [6f1e5b632ec] temp-angavrilov-constraints: tweak: copy transforms

Alexander Gavrilov noreply at git.blender.org
Wed Dec 2 18:07:06 CET 2020


Commit: 6f1e5b632ec39ba503f05393a5cca7611d9d9436
Author: Alexander Gavrilov
Date:   Wed Dec 2 12:12:55 2020 +0300
Branches: temp-angavrilov-constraints
https://developer.blender.org/rB6f1e5b632ec39ba503f05393a5cca7611d9d9436

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