Update default coordinate system value. Add according switch case and default clause.

This commit is contained in:
lzwdgc 2020-12-08 22:11:49 +03:00
parent e2228f51c1
commit dd840fcbd2
2 changed files with 7 additions and 1 deletions

View file

@ -103,6 +103,10 @@ void ConvertScene(FbxScene* lScene, AxisSystem as)
{ {
switch (as) switch (as)
{ {
case AxisSystem::eMayaYUp:
// "By default the FbxScene uses a Y-Up axis system." (c)
// (from fbx doc)
break;
case AxisSystem::eMayaZUp: case AxisSystem::eMayaZUp:
FbxAxisSystem::MayaZUp.ConvertScene(lScene); FbxAxisSystem::MayaZUp.ConvertScene(lScene);
break; break;
@ -114,6 +118,8 @@ void ConvertScene(FbxScene* lScene, AxisSystem as)
// UpVector = ZAxis, FrontVector = ParityOdd, CoordSystem = RightHanded // UpVector = ZAxis, FrontVector = ParityOdd, CoordSystem = RightHanded
FbxAxisSystem(FbxAxisSystem::eZAxis, FbxAxisSystem::eParityOdd, FbxAxisSystem::eRightHanded).ConvertScene(lScene); FbxAxisSystem(FbxAxisSystem::eZAxis, FbxAxisSystem::eParityOdd, FbxAxisSystem::eRightHanded).ConvertScene(lScene);
break; break;
default:
SW_UNIMPLEMENTED;
} }
} }

View file

@ -100,7 +100,7 @@ enum class AxisSystem
eWindows3DViewer, eWindows3DViewer,
// special // special
Default = 0, Default = eMayaYUp,
}; };
template <typename T> template <typename T>