diff options
author | Ton Roosendaal <ton@blender.org> | 2010-12-22 22:12:00 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2010-12-22 22:12:00 +0300 |
commit | dcd8c516dd9b07b70979624c5811cb49ef996fe0 (patch) | |
tree | 625bc87b347bfdf33064d91f84a65bdf6e864013 /source/blender/editors/transform/transform.c | |
parent | 3a81eca027049a2612b334525a72c905350b0f8c (diff) |
Bugfix #25348
EdgeSlide: cancel didn't refresh UVs in mesh for cancelled
state. Also loopcut suffered this.
Diffstat (limited to 'source/blender/editors/transform/transform.c')
-rw-r--r-- | source/blender/editors/transform/transform.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c index a775315f0af..f7d4493734b 100644 --- a/source/blender/editors/transform/transform.c +++ b/source/blender/editors/transform/transform.c @@ -103,6 +103,7 @@ #include "transform.h" void drawTransformApply(const struct bContext *C, struct ARegion *ar, void *arg); +int doEdgeSlide(TransInfo *t, float perc); /* ************************** SPACE DEPENDANT CODE **************************** */ @@ -1785,6 +1786,10 @@ int transformEnd(bContext *C, TransInfo *t) /* handle restoring objects */ if(t->state == TRANS_CANCEL) { + /* exception, edge slide transformed UVs too */ + if(t->mode==TFM_EDGE_SLIDE) + doEdgeSlide(t, 0.0f); + exit_code = OPERATOR_CANCELLED; restoreTransObjects(t); // calls recalcData() } |