Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_generics.c
| Show First 20 Lines • Show All 103 Lines • ▼ Show 20 Lines | |||||
| #include "WM_api.h" | #include "WM_api.h" | ||||
| #include "RE_engine.h" | #include "RE_engine.h" | ||||
| #include "UI_resources.h" | #include "UI_resources.h" | ||||
| #include "UI_view2d.h" | #include "UI_view2d.h" | ||||
| #include "transform.h" | #include "transform.h" | ||||
| #include "transform_conversions.h" | |||||
| /* ************************** Functions *************************** */ | /* ************************** Functions *************************** */ | ||||
| void getViewVector(const TransInfo *t, const float coord[3], float vec[3]) | void getViewVector(const TransInfo *t, const float coord[3], float vec[3]) | ||||
| { | { | ||||
| if (t->persp != RV3D_ORTHO) { | if (t->persp != RV3D_ORTHO) { | ||||
| sub_v3_v3v3(vec, coord, t->viewinv[3]); | sub_v3_v3v3(vec, coord, t->viewinv[3]); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 2,443 Lines • Show Last 20 Lines | |||||