[Bf-blender-cvs] [47a8b38] master: Fix T37143: Wrong normal dir with individual origins + one vert selected
Campbell Barton
noreply at git.blender.org
Thu Nov 28 10:41:44 CET 2013
Commit: 47a8b38e5356356b19a51723a4efcc173063dad5
Author: Campbell Barton
Date: Thu Nov 28 19:23:05 2013 +1100
http://developer.blender.org/rB47a8b38e5356356b19a51723a4efcc173063dad5
Fix T37143: Wrong normal dir with individual origins + one vert selected
===================================================================
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 4ba87eb..894145c 100644
--- a/source/blender/editors/transform/transform_constraints.c
+++ b/source/blender/editors/transform/transform_constraints.c
@@ -576,7 +576,15 @@ void setConstraint(TransInfo *t, float space[3][3], int mode, const char text[])
void setAxisMatrixConstraint(TransInfo *t, int mode, const char text[])
{
if (t->total == 1) {
- setConstraint(t, t->data->axismtx, mode, text);
+ float axismtx[3][3];
+ if (t->flag & T_EDIT) {
+ mul_m3_m3m3(axismtx, t->obedit_mat, t->data->axismtx);
+ }
+ else {
+ copy_m3_m3(axismtx, t->data->axismtx);
+ }
+
+ setConstraint(t, axismtx, mode, text);
}
else {
BLI_strncpy(t->con.text + 1, text, sizeof(t->con.text) - 1);
More information about the Bf-blender-cvs
mailing list