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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user