From dd840fcbd22114cb959310fd516d50a7ef475b72 Mon Sep 17 00:00:00 2001 From: lzwdgc Date: Tue, 8 Dec 2020 22:11:49 +0300 Subject: [PATCH] Update default coordinate system value. Add according switch case and default clause. --- src/mod_converter/fbx.cpp | 6 ++++++ src/model/model.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/mod_converter/fbx.cpp b/src/mod_converter/fbx.cpp index 45d9962..cfbbc07 100644 --- a/src/mod_converter/fbx.cpp +++ b/src/mod_converter/fbx.cpp @@ -103,6 +103,10 @@ void ConvertScene(FbxScene* lScene, AxisSystem as) { switch (as) { + case AxisSystem::eMayaYUp: + // "By default the FbxScene uses a Y-Up axis system." (c) + // (from fbx doc) + break; case AxisSystem::eMayaZUp: FbxAxisSystem::MayaZUp.ConvertScene(lScene); break; @@ -114,6 +118,8 @@ void ConvertScene(FbxScene* lScene, AxisSystem as) // UpVector = ZAxis, FrontVector = ParityOdd, CoordSystem = RightHanded FbxAxisSystem(FbxAxisSystem::eZAxis, FbxAxisSystem::eParityOdd, FbxAxisSystem::eRightHanded).ConvertScene(lScene); break; + default: + SW_UNIMPLEMENTED; } } diff --git a/src/model/model.h b/src/model/model.h index 4cccfc1..5788205 100644 --- a/src/model/model.h +++ b/src/model/model.h @@ -100,7 +100,7 @@ enum class AxisSystem eWindows3DViewer, // special - Default = 0, + Default = eMayaYUp, }; template