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>2005-04-24 05:18:13 +0400
committerMartin Poirier <theeth@yahoo.com>2005-04-24 05:18:13 +0400
commit6379ff9b7046e9286aaa117e98cdaa932480008c (patch)
treed368612dd2420f314d90e123063d2efca81c4a5a /source/blender/src/transform_constraints.c
parent3c7617de521d9191012b2ef01ee8a396310aaaea (diff)
Toying a bit with MMB behavior:
MMB click with no constraint selects a constraint right away (the axis selector doesn't flash on screen) MMB click with a constraint removes the constraint MMB click-drag in both case (with and without a constraint) uses the axis selector. stopConstraint didn't remove the CON_SELECT flag, so cancelling transform while selecting a constraint and then reentering transform was funny. Fixed
Diffstat (limited to 'source/blender/src/transform_constraints.c')
-rwxr-xr-xsource/blender/src/transform_constraints.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/src/transform_constraints.c b/source/blender/src/transform_constraints.c
index 6908e6c8f96..7611041cddd 100755
--- a/source/blender/src/transform_constraints.c
+++ b/source/blender/src/transform_constraints.c
@@ -718,7 +718,7 @@ void startConstraint(TransInfo *t) {
}
void stopConstraint(TransInfo *t) {
- t->con.mode &= ~CON_APPLY;
+ t->con.mode &= ~(CON_APPLY|CON_SELECT);
*t->con.text = '\0';
t->num.idx_max = t->idx_max;
}
@@ -751,10 +751,9 @@ void getConstraintMatrix(TransInfo *t)
Mat3MulMat3(t->con.pmtx, t->con.mtx, mat);
}
-void initSelectConstraint(TransInfo *t)
+void initSelectConstraint(TransInfo *t, float mtx[3][3])
{
- Mat3One(t->con.mtx);
- Mat3One(t->con.pmtx);
+ Mat3CpyMat3(t->con.mtx, mtx);
t->con.mode |= CON_APPLY;
t->con.mode |= CON_SELECT;