diff options
author | mano-wii <germano.costa@ig.com.br> | 2019-10-28 15:51:53 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2019-10-28 15:51:53 +0300 |
commit | ce0db668ec0410c8b2d41f605e2cf5e608df5082 (patch) | |
tree | 7269b7b71463e801193905c93da1eed60e112bda /source/blender/editors/include/ED_transform.h | |
parent | a83bbefec699b60a5f221a55e86998380cceb181 (diff) |
Fix T50148: Header: Wrong rounding when moving frames
Deduplicate the code and use the same logic used to
calculate individual elements in `t->values_final[0]`.
Differential revision: https://developer.blender.org/D6135
Diffstat (limited to 'source/blender/editors/include/ED_transform.h')
-rw-r--r-- | source/blender/editors/include/ED_transform.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_transform.h b/source/blender/editors/include/ED_transform.h index 8c70fc9a157..446dbccb4c5 100644 --- a/source/blender/editors/include/ED_transform.h +++ b/source/blender/editors/include/ED_transform.h @@ -206,6 +206,12 @@ bool snapNodesTransform(struct TransInfo *t, float r_loc[2], float *r_dist_px, char *r_node_border); +void snapFrameTransform(struct TransInfo *t, + const short autosnap, + const bool is_frame_value, + const float delta, + /* return args */ + float *r_val); void ED_transform_calc_orientation_from_type(const struct bContext *C, float r_mat[3][3]); void ED_transform_calc_orientation_from_type_ex(const struct bContext *C, |