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:
authorKen Hughes <khughes@pacific.edu>2006-07-08 18:24:57 +0400
committerKen Hughes <khughes@pacific.edu>2006-07-08 18:24:57 +0400
commitcf266ea2af46e079f86f44835d64e446d1bdbecd (patch)
tree17ea677558623038babecee9a5763d0149cc8050
parent00b55aba24908bb4f22a263069a6659bd3556cf5 (diff)
Bugfix #4627: headerResize() was overflowing a string parameter and
destroying part of the transform matrix. Also remove a debigging printf.
-rwxr-xr-xsource/blender/src/transform.c2
-rwxr-xr-xsource/blender/src/transform_numinput.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/src/transform.c b/source/blender/src/transform.c
index 7f6b4bccdfa..f450628b640 100755
--- a/source/blender/src/transform.c
+++ b/source/blender/src/transform.c
@@ -1514,7 +1514,7 @@ int Resize(TransInfo *t, short mval[2])
float size[3], mat[3][3];
float ratio;
int i;
- char str[50];
+ char str[200];
/* for manipulator, center handle, the scaling can't be done relative to center */
if( (t->flag & T_USES_MANIPULATOR) && t->con.mode==0) {
diff --git a/source/blender/src/transform_numinput.c b/source/blender/src/transform_numinput.c
index c59fc8d6104..730d25545bd 100755
--- a/source/blender/src/transform_numinput.c
+++ b/source/blender/src/transform_numinput.c
@@ -242,8 +242,6 @@ char handleNumInput(NumInput *n, unsigned short event)
return 0;
}
- printf("value %f cntrl %d\n", n->val[idx], n->ctrl[idx]);
-
/* REDRAW SINCE NUMBERS HAVE CHANGED */
return 1;
}