From 27b175238a04e48788064284feb5f1774c59cdf3 Mon Sep 17 00:00:00 2001 From: lzwdgc Date: Wed, 9 Dec 2020 05:09:20 +0300 Subject: [PATCH] Throw on unknown axis system. Explicitly add default one. --- src/model/model.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/model/model.cpp b/src/model/model.cpp index 9944c46..0422303 100644 --- a/src/model/model.cpp +++ b/src/model/model.cpp @@ -172,6 +172,8 @@ static aim_vector3 rotate(const aim_vector3 &in, AxisSystem rot_type) aim_vector3 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 rotate(const aim_vector3 &in, AxisSystem rot_type) case AxisSystem::eDirectX: v.x = -v.x; break; + default: + SW_UNIMPLEMENTED; } return v; }