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:
authorCampbell Barton <ideasman42@gmail.com>2013-02-17 09:58:18 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-02-17 09:58:18 +0400
commitb0a7370284f076cdb0570d05d8afd955f3cdc231 (patch)
treeb7fcd54ae01dfdc8c0f5e109faa7142ecd8c7def /source/blender/editors/transform
parent18f12c3fa4196189c8c8a21c147ac3c46abac74d (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/transform')
-rw-r--r--source/blender/editors/transform/transform.c8
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;