[Bf-blender-cvs] [a574478d901] master: Fix T77183: Axis moves with object when constraint movement and using local transform
Germano Cavalcante
noreply at git.blender.org
Sat May 30 17:15:49 CEST 2020
Commit: a574478d901aef5c22b9f3a4f8ac69e4b87411b8
Author: Germano Cavalcante
Date: Sat May 30 11:10:07 2020 -0300
Branches: master
https://developer.blender.org/rBa574478d901aef5c22b9f3a4f8ac69e4b87411b8
Fix T77183: Axis moves with object when constraint movement and using local transform
===================================================================
M source/blender/editors/transform/transform_constraints.c
===================================================================
diff --git a/source/blender/editors/transform/transform_constraints.c b/source/blender/editors/transform/transform_constraints.c
index 0a6e0d6b7f5..228e8d58162 100644
--- a/source/blender/editors/transform/transform_constraints.c
+++ b/source/blender/editors/transform/transform_constraints.c
@@ -829,11 +829,7 @@ static void drawObjectConstraint(TransInfo *t)
}
}
- if (t->flag & T_OBJECT) {
- copy_v3_v3(co, td->ob->obmat[3]);
- axismtx = td->axismtx;
- }
- else if (t->flag & T_EDIT) {
+ if (t->flag & T_EDIT) {
mul_v3_m4v3(co, tc->mat, td->center);
mul_m3_m3m3(tmp_axismtx, tc->mat3_unit, td->axismtx);
More information about the Bf-blender-cvs
mailing list