Throw on unknown axis system. Explicitly add default one.

This commit is contained in:
lzwdgc 2020-12-09 05:09:20 +03:00
parent 40c9393a43
commit 27b175238a

View file

@ -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;
}