Cleanup: move 'recalcData' to 'transform_convert.h'

The `recalcData` function is defined in `transform_convert.c`, so the
header is most expected to be `transform_convert.h`.
This commit is contained in:
Germano Cavalcante 2021-08-17 16:53:29 -03:00
parent e3098de2a1
commit 809dce5bde
28 changed files with 71 additions and 22 deletions

View File

@ -779,7 +779,6 @@ void drawLine(TransInfo *t, const float center[3], const float dir[3], char axis
void applyTransObjects(TransInfo *t);
void restoreTransObjects(TransInfo *t);
void recalcData(TransInfo *t);
void calculateCenter2D(TransInfo *t);
void calculateCenterLocal(TransInfo *t, const float center_global[3]);

View File

@ -43,6 +43,7 @@ void sort_trans_data_dist(TransInfo *t);
void createTransData(struct bContext *C, TransInfo *t);
bool clipUVTransform(TransInfo *t, float vec[2], const bool resize);
void clipUVData(TransInfo *t);
void recalcData(TransInfo *t);
/* transform_convert_mesh.c */
void transform_convert_mesh_customdatacorrect_init(TransInfo *t);

View File

@ -60,6 +60,7 @@
#include "UI_view2d.h"
#include "transform.h"
#include "transform_convert.h"
#include "transform_mode.h"
#include "transform_orientations.h"
#include "transform_snap.h"

View File

@ -32,6 +32,8 @@
#include "BLT_translation.h"
#include "transform.h"
#include "transform_convert.h"
#include "transform_mode.h"
/* -------------------------------------------------------------------- */

View File

@ -36,9 +36,11 @@
#include "BLT_translation.h"
#include "transform.h"
#include "transform_mode.h"
#include "transform_convert.h"
#include "transform_snap.h"
#include "transform_mode.h"
/* -------------------------------------------------------------------- */
/** \name Transform (Bake-Time)
* \{ */

View File

@ -37,9 +37,11 @@
#include "transform.h"
#include "transform_constraints.h"
#include "transform_mode.h"
#include "transform_convert.h"
#include "transform_snap.h"
#include "transform_mode.h"
/* -------------------------------------------------------------------- */
/** \name Transform (EditBone B-Bone width scaling)
* \{ */

View File

@ -44,9 +44,11 @@
#include "BLT_translation.h"
#include "transform.h"
#include "transform_mode.h"
#include "transform_convert.h"
#include "transform_snap.h"
#include "transform_mode.h"
/* -------------------------------------------------------------------- */
/** \name Transform (Bend) Custom Data
* \{ */

View File

@ -36,9 +36,11 @@
#include "BLT_translation.h"
#include "transform.h"
#include "transform_mode.h"
#include "transform_convert.h"
#include "transform_snap.h"
#include "transform_mode.h"
/* -------------------------------------------------------------------- */
/** \name Transform (Bone Envelope)
* \{ */

View File

@ -36,9 +36,11 @@
#include "BLT_translation.h"
#include "transform.h"
#include "transform_mode.h"
#include "transform_convert.h"
#include "transform_snap.h"
#include "transform_mode.h"
/* -------------------------------------------------------------------- */
/** \name Transform (EditBone Roll)
* \{ */

View File

@ -36,9 +36,11 @@
#include "BLT_translation.h"
#include "transform.h"
#include "transform_mode.h"
#include "transform_convert.h"
#include "transform_snap.h"
#include "transform_mode.h"
/* -------------------------------------------------------------------- */
/** \name Transform (Curve Shrink/Fatten)
* \{ */

View File

@ -37,9 +37,11 @@
#include "BLT_translation.h"
#include "transform.h"
#include "transform_mode.h"
#include "transform_convert.h"
#include "transform_snap.h"
#include "transform_mode.h"
/* -------------------------------------------------------------------- */
/** \name Transform (Bevel Weight) Element
* \{ */

View File

@ -37,9 +37,11 @@
#include "BLT_translation.h"
#include "transform.h"
#include "transform_mode.h"
#include "transform_convert.h"
#include "transform_snap.h"
#include "transform_mode.h"
/* -------------------------------------------------------------------- */
/** \name Transform (Crease) Element
* \{ */

View File

@ -35,9 +35,10 @@
#include "UI_interface.h"
#include "transform.h"
#include "transform_mode.h"
#include "transform_convert.h"
#include "transform_snap.h"
#include "transform_mode.h"
/* -------------------------------------------------------------------- */
/** \name Transform (Normal Rotation)
* \{ */

View File

@ -38,9 +38,11 @@
#include "BLT_translation.h"
#include "transform.h"
#include "transform_mode.h"
#include "transform_convert.h"
#include "transform_snap.h"
#include "transform_mode.h"
/* -------------------------------------------------------------------- */
/** \name Transform (GPencil Strokes Opacity)
* \{ */

View File

@ -38,9 +38,11 @@
#include "BLT_translation.h"
#include "transform.h"
#include "transform_mode.h"
#include "transform_convert.h"
#include "transform_snap.h"
#include "transform_mode.h"
/* -------------------------------------------------------------------- */
/** \name Transform (GPencil Strokes Shrink/Fatten)
* \{ */

View File

@ -36,9 +36,11 @@
#include "BLT_translation.h"
#include "transform.h"
#include "transform_mode.h"
#include "transform_convert.h"
#include "transform_snap.h"
#include "transform_mode.h"
/* -------------------------------------------------------------------- */
/** \name Transform (Mask Shrink/Fatten)
* \{ */

View File

@ -37,6 +37,8 @@
#include "BLT_translation.h"
#include "transform.h"
#include "transform_convert.h"
#include "transform_mode.h"
/* -------------------------------------------------------------------- */

View File

@ -38,9 +38,11 @@
#include "transform.h"
#include "transform_constraints.h"
#include "transform_mode.h"
#include "transform_convert.h"
#include "transform_snap.h"
#include "transform_mode.h"
/* -------------------------------------------------------------------- */
/** \name Transform (Push/Pull) Element
* \{ */

View File

@ -34,9 +34,11 @@
#include "UI_interface.h"
#include "transform.h"
#include "transform_mode.h"
#include "transform_convert.h"
#include "transform_snap.h"
#include "transform_mode.h"
/* -------------------------------------------------------------------- */
/** \name Transform (Rotation) Matrix Cache
* \{ */

View File

@ -41,9 +41,11 @@
#include "BLT_translation.h"
#include "transform.h"
#include "transform_mode.h"
#include "transform_convert.h"
#include "transform_snap.h"
#include "transform_mode.h"
/* -------------------------------------------------------------------- */
/** \name Transform (Shear) Element
* \{ */

View File

@ -40,9 +40,11 @@
#include "BLT_translation.h"
#include "transform.h"
#include "transform_mode.h"
#include "transform_convert.h"
#include "transform_snap.h"
#include "transform_mode.h"
/* -------------------------------------------------------------------- */
/** \name Transform (Shrink-Fatten) Element
* \{ */

View File

@ -35,9 +35,11 @@
#include "transform.h"
#include "transform_constraints.h"
#include "transform_mode.h"
#include "transform_convert.h"
#include "transform_snap.h"
#include "transform_mode.h"
/* -------------------------------------------------------------------- */
/** \name Transform (Skin) Element
* \{ */

View File

@ -36,9 +36,11 @@
#include "BLT_translation.h"
#include "transform.h"
#include "transform_mode.h"
#include "transform_convert.h"
#include "transform_snap.h"
#include "transform_mode.h"
/* -------------------------------------------------------------------- */
/** \name Transform (Tilt)
* \{ */

View File

@ -39,6 +39,7 @@
#include "BLT_translation.h"
#include "transform.h"
#include "transform_convert.h"
#include "transform_mode.h"
/* -------------------------------------------------------------------- */

View File

@ -42,6 +42,8 @@
#include "BLT_translation.h"
#include "transform.h"
#include "transform_convert.h"
#include "transform_mode.h"
/* -------------------------------------------------------------------- */

View File

@ -39,9 +39,11 @@
#include "BLT_translation.h"
#include "transform.h"
#include "transform_mode.h"
#include "transform_convert.h"
#include "transform_snap.h"
#include "transform_mode.h"
/* -------------------------------------------------------------------- */
/** \name Transform (Animation Translation)
* \{ */

View File

@ -39,9 +39,11 @@
#include "BLT_translation.h"
#include "transform.h"
#include "transform_mode.h"
#include "transform_convert.h"
#include "transform_snap.h"
#include "transform_mode.h"
/* -------------------------------------------------------------------- */
/** \name To Sphere Utilities
* \{ */

View File

@ -37,9 +37,11 @@
#include "BLT_translation.h"
#include "transform.h"
#include "transform_mode.h"
#include "transform_convert.h"
#include "transform_snap.h"
#include "transform_mode.h"
/* -------------------------------------------------------------------- */
/** \name Transform (Rotation - Trackball) Element
* \{ */