diff options
author | Joshua Leung <aligorith@gmail.com> | 2007-10-02 10:30:33 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2007-10-02 10:30:33 +0400 |
commit | 27b239f89ccc03f3f199031ccdead07296e11998 (patch) | |
tree | ef02d0ef468078084c5da785a2499af4c8beb4f7 /source/blender | |
parent | 9bfcbe95059f378e9d820e71e600bba4a8e2a5cb (diff) |
Bone/Envelope Size Bugfix:
When in envelope draw-mode for an armature, it would not be possible to change the envelope distance of a bone using Alt-S if the distance was 0.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/src/transform.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/src/transform.c b/source/blender/src/transform.c index b58d5d05735..1dbb4553720 100644 --- a/source/blender/src/transform.c +++ b/source/blender/src/transform.c @@ -3054,7 +3054,13 @@ int BoneEnvelope(TransInfo *t, short mval[2]) if (td->flag & TD_NOACTION) break; - if(td->val) *td->val= td->ival*ratio; + if (td->val) { + /* if the old/original value was 0.0f, then just use ratio */ + if (td->ival) + *td->val= td->ival*ratio; + else + *td->val= ratio; + } } recalcData(t); |