diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-02-17 09:58:18 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-02-17 09:58:18 +0400 |
commit | b0a7370284f076cdb0570d05d8afd955f3cdc231 (patch) | |
tree | b7fcd54ae01dfdc8c0f5e109faa7142ecd8c7def /source/blender/editors | |
parent | 18f12c3fa4196189c8c8a21c147ac3c46abac74d (diff) |
vertex slide: dont write clamped value back into TransInfo.values,
this meant toggling clamp didn't take any effect until the mouse was moved. (annoying glitch)
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/transform/transform.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c index ae00f012846..e5b4a6c7bae 100644 --- a/source/blender/editors/transform/transform.c +++ b/source/blender/editors/transform/transform.c @@ -6444,15 +6444,11 @@ int VertSlide(TransInfo *t, const int UNUSED(mval[2])) str_p += BLI_snprintf(str_p, sizeof(str) - (str_p - str), "Alt or (C)lamp: %s", is_clamp ? "ON" : "OFF"); /* done with header string */ - if (is_constrained) { - CLAMP(final, 0.0f, 1.0f); - } - - t->values[0] = final; /*do stuff here*/ - if (t->customData) + if (t->customData) { doVertSlide(t, final); + } else { strcpy(str, "Invalid Vert Selection"); t->state = TRANS_CANCEL; |