Cleanup: Move and rename 'getViewVector' utility

This function is only being used by the constraint code.
This commit is contained in:
2021-02-03 14:01:40 -03:00
parent 8c7b78672e
commit 9042532085
3 changed files with 15 additions and 19 deletions

View File

@@ -64,19 +64,6 @@
#include "transform_orientations.h"
#include "transform_snap.h"
/* ************************** Functions *************************** */
void getViewVector(const TransInfo *t, const float coord[3], float vec[3])
{
if (t->persp != RV3D_ORTHO) {
sub_v3_v3v3(vec, t->viewinv[3], coord);
}
else {
copy_v3_v3(vec, t->viewinv[2]);
}
normalize_v3(vec);
}
/* ************************** GENERICS **************************** */
void drawLine(TransInfo *t, const float center[3], const float dir[3], char axis, short options)