diff options
author | Martin Poirier <theeth@yahoo.com> | 2005-02-23 05:23:50 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2005-02-23 05:23:50 +0300 |
commit | 9f678340b5a9f838c7e0f389d1e0b5957bcd175d (patch) | |
tree | 32feb6b30d19b96406defe4bd88894e49260498d /source/blender/src/transform_numinput.c | |
parent | b8aa04ed620d6895511b6a3c8a3d2626ff0aa3ef (diff) |
Fixed some bugs with Shear and Resize, was acting weird in object mode when parenting was involved.
Changed the meaning of mtx and smtx for objects. It's now uniform accross the board.
Added TD_OBJECT as a TransData flag. Objects is requiring exception code here and there, use a flag instead of G.obedit. Will document what the exceptions are for people who wants to add more transformations.
Split TransData in two.
Note to Ton:
You'll have to change posemode to use the new structure. I've left some variables as part of TransData to have a compilable version in CVS, remove them when you stop using them.
Check MetaElement and Object conversion for example on how to use TransDataExtension (though I'm sure you can figure it out by yourself).
And that's it. Not much coding time in the week days. :\
Diffstat (limited to 'source/blender/src/transform_numinput.c')
-rwxr-xr-x | source/blender/src/transform_numinput.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/source/blender/src/transform_numinput.c b/source/blender/src/transform_numinput.c index 7293d935bb5..b94dcff3e05 100755 --- a/source/blender/src/transform_numinput.c +++ b/source/blender/src/transform_numinput.c @@ -62,41 +62,41 @@ void outputNumInput(NumInput *n, char *str) { - char Cur; + char cur; short i; for (i=0; i<=n->idx_max; i++) { if (n->idx != i) - Cur = ' '; + cur = ' '; else - Cur = '|'; + cur = '|'; switch (n->ctrl[i]) { case 0: - sprintf(&str[i*20], "NONE%c", Cur); + sprintf(&str[i*20], "NONE%c", cur); break; case 1: case -1: - sprintf(&str[i*20], "%.0f%c", n->val[i], Cur); + sprintf(&str[i*20], "%.0f%c", n->val[i], cur); break; case 10: case -10: - sprintf(&str[i*20], "%.f.%c", n->val[i], Cur); + sprintf(&str[i*20], "%.f.%c", n->val[i], cur); break; case 100: case -100: - sprintf(&str[i*20], "%.1f%c", n->val[i], Cur); + sprintf(&str[i*20], "%.1f%c", n->val[i], cur); break; case 1000: case -1000: - sprintf(&str[i*20], "%.2f%c", n->val[i], Cur); + sprintf(&str[i*20], "%.2f%c", n->val[i], cur); case 10000: case -10000: - sprintf(&str[i*20], "%.3f%c", n->val[i], Cur); + sprintf(&str[i*20], "%.3f%c", n->val[i], cur); break; default: - sprintf(&str[i*20], "%.4f%c", n->val[i], Cur); + sprintf(&str[i*20], "%.4f%c", n->val[i], cur); } } } |