diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-04-04 13:20:46 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-04-04 13:20:46 +0400 |
commit | ef1af9f9c41a9cb33550bcaf396023ff840a3dab (patch) | |
tree | 0fa1e51908c7c1603d826eac5fbfca5dd4bef807 /source/blender/editors/transform/transform_orientations.c | |
parent | 82636ab0fbbeeccd3ca76d6ceb7ab018445acbc1 (diff) |
fix [#34802] Individual Transformation Confusing in Edit Mode
Individual transformation now works in editmode mesh faces/edge, armature bones and metaballs.
Diffstat (limited to 'source/blender/editors/transform/transform_orientations.c')
-rw-r--r-- | source/blender/editors/transform/transform_orientations.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/editors/transform/transform_orientations.c b/source/blender/editors/transform/transform_orientations.c index 0c1f169935a..023083a98ff 100644 --- a/source/blender/editors/transform/transform_orientations.c +++ b/source/blender/editors/transform/transform_orientations.c @@ -213,13 +213,13 @@ TransformOrientation *createMeshSpace(bContext *C, ReportList *reports, char *na return addMatrixSpace(C, mat, name, overwrite); } -int createSpaceNormal(float mat[3][3], float normal[3]) +bool createSpaceNormal(float mat[3][3], const float normal[3]) { float tangent[3] = {0.0f, 0.0f, 1.0f}; copy_v3_v3(mat[2], normal); if (normalize_v3(mat[2]) == 0.0f) { - return 0; /* error return */ + return false; /* error return */ } cross_v3_v3v3(mat[0], mat[2], tangent); @@ -233,14 +233,14 @@ int createSpaceNormal(float mat[3][3], float normal[3]) normalize_m3(mat); - return 1; + return true; } -int createSpaceNormalTangent(float mat[3][3], float normal[3], float tangent[3]) +bool createSpaceNormalTangent(float mat[3][3], float normal[3], float tangent[3]) { copy_v3_v3(mat[2], normal); if (normalize_v3(mat[2]) == 0.0f) { - return 0; /* error return */ + return false; /* error return */ } /* preempt zero length tangent from causing trouble */ @@ -250,14 +250,14 @@ int createSpaceNormalTangent(float mat[3][3], float normal[3], float tangent[3]) cross_v3_v3v3(mat[0], mat[2], tangent); if (normalize_v3(mat[0]) == 0.0f) { - return 0; /* error return */ + return false; /* error return */ } cross_v3_v3v3(mat[1], mat[2], mat[0]); normalize_m3(mat); - return 1; + return true; } TransformOrientation *addMatrixSpace(bContext *C, float mat[3][3], char name[], int overwrite) |