Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Poirier <theeth@yahoo.com>2009-01-19 00:36:38 +0300
committerMartin Poirier <theeth@yahoo.com>2009-01-19 00:36:38 +0300
commit6d85a0febaea736ee9172b9c9877e79006b43986 (patch)
tree041d208d56d1beccfa1ee592102dc81775762866 /source/blender/editors/transform/transform_constraints.c
parent54a0f4167b76dddca8288dd54b285c32fab1a945 (diff)
2.5
Transform orientations (Alt-Space and in header) enum for transform operator parameter.
Diffstat (limited to 'source/blender/editors/transform/transform_constraints.c')
-rw-r--r--source/blender/editors/transform/transform_constraints.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/editors/transform/transform_constraints.c b/source/blender/editors/transform/transform_constraints.c
index bebf8ccc0e6..0c0c78c969d 100644
--- a/source/blender/editors/transform/transform_constraints.c
+++ b/source/blender/editors/transform/transform_constraints.c
@@ -490,16 +490,16 @@ void setLocalConstraint(TransInfo *t, int mode, const char text[]) {
if (t->flag & T_EDIT) {
float obmat[3][3];
Mat3CpyMat4(obmat, t->scene->obedit->obmat);
- setConstraint(t, obmat, mode|CON_LOCAL, text);
+ setConstraint(t, obmat, mode, text);
}
else {
if (t->total == 1) {
- setConstraint(t, t->data->axismtx, mode|CON_LOCAL, text);
+ setConstraint(t, t->data->axismtx, mode, text);
}
else {
strncpy(t->con.text + 1, text, 48);
Mat3CpyMat3(t->con.mtx, t->data->axismtx);
- t->con.mode = mode|CON_LOCAL;
+ t->con.mode = mode;
getConstraintMatrix(t);
startConstraint(t);
@@ -869,7 +869,6 @@ void initSelectConstraint(TransInfo *t, float mtx[3][3])
Mat3CpyMat3(t->con.mtx, mtx);
t->con.mode |= CON_APPLY;
t->con.mode |= CON_SELECT;
- t->con.mode &= ~CON_LOCAL;
setNearestAxis(t);
t->con.drawExtra = NULL;