Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormano-wii <germano.costa@ig.com.br>2019-10-28 15:51:53 +0300
committermano-wii <germano.costa@ig.com.br>2019-10-28 15:51:53 +0300
commitce0db668ec0410c8b2d41f605e2cf5e608df5082 (patch)
tree7269b7b71463e801193905c93da1eed60e112bda /source/blender/editors/include/ED_transform.h
parenta83bbefec699b60a5f221a55e86998380cceb181 (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.h6
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,