mirror of
https://github.com/aimrebirth/tools.git
synced 2026-04-14 17:33:25 +00:00
Update default coordinate system value. Add according switch case and default clause.
This commit is contained in:
parent
e2228f51c1
commit
dd840fcbd2
2 changed files with 7 additions and 1 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -100,7 +100,7 @@ enum class AxisSystem
|
||||||
eWindows3DViewer,
|
eWindows3DViewer,
|
||||||
|
|
||||||
// special
|
// special
|
||||||
Default = 0,
|
Default = eMayaYUp,
|
||||||
};
|
};
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue