Fix 'getViewVector' returning inverted vector

Despite the wrong value, this change is harmless since the direction of
the vector is not really required.
This commit is contained in:
Germano Cavalcante 2021-02-03 13:57:22 -03:00
parent e54f88f092
commit 8c7b78672e
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@
void getViewVector(const TransInfo *t, const float coord[3], float vec[3])
{
if (t->persp != RV3D_ORTHO) {
sub_v3_v3v3(vec, coord, t->viewinv[3]);
sub_v3_v3v3(vec, t->viewinv[3], coord);
}
else {
copy_v3_v3(vec, t->viewinv[2]);