mirror of
https://github.com/aimrebirth/tools.git
synced 2026-04-14 17:33:25 +00:00
Throw on unknown axis system. Explicitly add default one.
This commit is contained in:
parent
40c9393a43
commit
27b175238a
1 changed files with 4 additions and 0 deletions
|
|
@ -172,6 +172,8 @@ static aim_vector3<T> rotate(const aim_vector3<T> &in, AxisSystem rot_type)
|
|||
aim_vector3<T> v = in;
|
||||
switch (rot_type)
|
||||
{
|
||||
case AxisSystem::eMayaYUp:
|
||||
break;
|
||||
case AxisSystem::eMayaZUp:
|
||||
v.y = -v.y;
|
||||
case AxisSystem::eWindows3DViewer:
|
||||
|
|
@ -181,6 +183,8 @@ static aim_vector3<T> rotate(const aim_vector3<T> &in, AxisSystem rot_type)
|
|||
case AxisSystem::eDirectX:
|
||||
v.x = -v.x;
|
||||
break;
|
||||
default:
|
||||
SW_UNIMPLEMENTED;
|
||||
}
|
||||
return v;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue