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-05-17 03:23:19 +0400
committerMartin Poirier <theeth@yahoo.com>2005-05-17 03:23:19 +0400
commit7f4ff24462217328a6d0d0b193621949ed5e085a (patch)
tree627be55063d3ef1096c1f8fd22ceb455f3adf873 /source/blender/src/transform.c
parent82be11b36b3da8ce8ec9ab03aae8e29562e4e59c (diff)
Unitialized variable in resize function.
Was caused by a previous commit, disabling Element Center mode for edit mode, since it's not working properly yet. Fixing bug #2558: http://projects.blender.org/tracker/?func=detail&atid=125&aid=2558&group_id=9
Diffstat (limited to 'source/blender/src/transform.c')
-rwxr-xr-xsource/blender/src/transform.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/src/transform.c b/source/blender/src/transform.c
index 42ac8dda265..c0c30a41a96 100755
--- a/source/blender/src/transform.c
+++ b/source/blender/src/transform.c
@@ -1070,8 +1070,12 @@ void ElementResize(TransInfo *t, TransData *td, float mat[3][3]) {
/* local constraint shouldn't alter center */
if (G.vd->around == V3D_LOCAL || (t->con.mode & CON_LOCAL)) {
- if (t->flag & T_OBJECT)
+ if (t->flag & T_OBJECT) {
VECCOPY(center, td->center); // not supported in editmode yet
+ }
+ else {
+ VECCOPY(center, t->center); // Editmode needs to define center too...
+ }
}
else {
VECCOPY(center, t->center);