From b0a7370284f076cdb0570d05d8afd955f3cdc231 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 17 Feb 2013 05:58:18 +0000 Subject: 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) --- source/blender/editors/transform/transform.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'source/blender/editors/transform') 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; -- cgit v1.2.3