diff options
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() } |