diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2020-10-08 19:24:04 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2020-10-08 19:39:41 +0300 |
commit | 569510d7044043b42a3abfa55e739a89673ed14f (patch) | |
tree | 1005e03cdc2725c0599b4f0cda320ac16619034f /source/blender/editors/transform/transform_orientations.h | |
parent | ea5f2f88b34ef92cfba9619439d8a786e5befcaa (diff) |
Fix T81529: Can't move with constraint to a zero-size local axis
To fix the problem, it was necessary to create a fallback for the
zero-sized axis in local orientation.
This also affects the gizmos.
Diffstat (limited to 'source/blender/editors/transform/transform_orientations.h')
-rw-r--r-- | source/blender/editors/transform/transform_orientations.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform_orientations.h b/source/blender/editors/transform/transform_orientations.h index 7013501ce12..e9c146a6853 100644 --- a/source/blender/editors/transform/transform_orientations.h +++ b/source/blender/editors/transform/transform_orientations.h @@ -34,6 +34,10 @@ const char *transform_orientations_spacename_get(struct TransInfo *t, const shor void transform_orientations_current_set(struct TransInfo *t, const short orient_index); /* Those two fill in mat and return non-zero on success */ +bool transform_orientations_create_from_axis(float mat[3][3], + const float x[3], + const float y[3], + const float z[3]); bool createSpaceNormal(float mat[3][3], const float normal[3]); bool createSpaceNormalTangent(float mat[3][3], const float normal[3], const float tangent[3]); |