allow to scale and rotate from edge/vertex slide.

This commit is contained in:
2013-04-24 15:15:01 +00:00
parent f3518d9d76
commit 9697493c77
3 changed files with 23 additions and 10 deletions

View File

@@ -1002,6 +1002,19 @@ void drawLine(TransInfo *t, const float center[3], const float dir[3], char axis
}
}
/**
* Free data before switching to another mode.
*/
void resetTransModal(TransInfo *t)
{
if (t->mode == TFM_EDGE_SLIDE) {
freeEdgeSlideVerts(t);
}
else if (t->mode == TFM_VERT_SLIDE) {
freeVertSlideVerts(t);
}
}
void resetTransRestrictions(TransInfo *t)
{
t->flag &= ~T_ALL_RESTRICTIONS;