diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2020-05-01 23:40:54 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2020-05-01 23:41:06 +0300 |
commit | 06839379c5d4f541a80c4d0f4487d8eb2c6fbba0 (patch) | |
tree | 7c1c04fef3a8011ed58a866c1eebca6f60ecd687 /source/blender/editors/transform/transform_orientations.c | |
parent | 87602d886f70a38a20e5738709dd971744a27516 (diff) |
Transform: Allow orientation change with custom matrix in modal
Diffstat (limited to 'source/blender/editors/transform/transform_orientations.c')
-rw-r--r-- | source/blender/editors/transform/transform_orientations.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/source/blender/editors/transform/transform_orientations.c b/source/blender/editors/transform/transform_orientations.c index 0edaf259f0e..3b1f3559daa 100644 --- a/source/blender/editors/transform/transform_orientations.c +++ b/source/blender/editors/transform/transform_orientations.c @@ -438,16 +438,11 @@ static int armature_bone_transflags_update_recursive(bArmature *arm, return total; } -void initTransformOrientation(bContext *C, TransInfo *t) +void initTransformOrientation(bContext *C, TransInfo *t, short orientation) { Object *ob = CTX_data_active_object(C); Object *obedit = CTX_data_active_object(C); - /* Use the custom orientation when it is set. */ - short orientation = t->orientation.types[0] == V3D_ORIENT_CUSTOM_MATRIX ? - V3D_ORIENT_CUSTOM_MATRIX : - t->orientation.types[t->orientation.index]; - switch (orientation) { case V3D_ORIENT_GLOBAL: unit_m3(t->spacemtx); |