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:
authorTon Roosendaal <ton@blender.org>2005-05-08 01:04:55 +0400
committerTon Roosendaal <ton@blender.org>2005-05-08 01:04:55 +0400
commitd10862a9daecc05c6468bd6ebaed8194d3b4419e (patch)
treecb12461ae78d4c319ed4cdf6d1640e23b4fc0972 /source/blender/src/transform_constraints.c
parent4a123c082f7e4537df5586795de14bd4742fe5b4 (diff)
Fix for negative scaling & Mirror menu in Object mode (CTRL+M)
Hope Martin likes this simple hack. :) Also; added flag in constraint to denote whether its local or not. That way its possible to: - prevent local scale and rotate on multiple objects to change own position - draw constraint lines cleaner
Diffstat (limited to 'source/blender/src/transform_constraints.c')
-rwxr-xr-xsource/blender/src/transform_constraints.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/src/transform_constraints.c b/source/blender/src/transform_constraints.c
index 1c67e272146..95f224c0527 100755
--- a/source/blender/src/transform_constraints.c
+++ b/source/blender/src/transform_constraints.c
@@ -472,6 +472,7 @@ static void drawObjectConstraint(TransInfo *t) {
int i;
TransData * td = t->data;
+ /* cannot find any reason for drawing first constraint this way... (ton)
if (t->con.mode & CON_AXIS0) {
drawLine(td->ob->obmat[3], td->axismtx[0], 'x', DRAWLIGHT);
}
@@ -481,9 +482,10 @@ static void drawObjectConstraint(TransInfo *t) {
if (t->con.mode & CON_AXIS2) {
drawLine(td->ob->obmat[3], td->axismtx[2], 'z', DRAWLIGHT);
}
-
+
td++;
- for(i=1;i<t->total;i++,td++) {
+ */
+ for(i=0;i<t->total;i++,td++) {
if (t->con.mode & CON_AXIS0) {
drawLine(td->ob->obmat[3], td->axismtx[0], 'x', 0);
}
@@ -535,6 +537,7 @@ void setConstraint(TransInfo *t, float space[3][3], int mode, const char text[])
startConstraint(t);
+ t->con.drawExtra = NULL;
t->con.applyVec = applyAxisConstraintVec;
t->con.applySize = applyAxisConstraintSize;
t->con.applyRot = applyAxisConstraintRot;
@@ -590,7 +593,7 @@ void setLocalConstraint(TransInfo *t, int mode, const char text[]) {
else {
strncpy(t->con.text + 1, text, 48);
Mat3CpyMat3(t->con.mtx, t->data->axismtx);
- t->con.mode = mode;
+ t->con.mode = mode|CON_LOCAL;
getConstraintMatrix(t);
startConstraint(t);