Transform: use relative motion for vertex slide

Vertex slide was using absolute mouse position unlike all other kinds of transform.

also remove need for allocated 2d projections.
This commit is contained in:
2015-04-08 22:58:31 +10:00
parent 01b1eb445c
commit 2c91f9dc11
2 changed files with 82 additions and 61 deletions

View File

@@ -266,9 +266,7 @@ typedef struct TransDataVertSlideVert {
float co_orig_3d[3];
/* end generic */
float co_orig_2d[2];
float (*co_link_orig_3d)[3];
float (*co_link_orig_2d)[2];
int co_link_tot;
int co_link_curr;
} TransDataVertSlideVert;
@@ -287,6 +285,9 @@ typedef struct VertSlideData {
bool flipped_vtx;
int curr_sv_index;
/* result of ED_view3d_ob_project_mat_get */
float proj_mat[4][4];
} VertSlideData;
typedef struct BoneInitData {