mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-28 17:09:41 +00:00
Modernize NiKeyframeData
This commit is contained in:
parent
cfd37dbcc6
commit
50a5d53b41
2 changed files with 2 additions and 2 deletions
|
@ -509,7 +509,7 @@ namespace Nif
|
||||||
if (mRotations->mInterpolationType == InterpolationType_XYZ)
|
if (mRotations->mInterpolationType == InterpolationType_XYZ)
|
||||||
{
|
{
|
||||||
if (nif->getVersion() <= NIFStream::generateVersion(10, 1, 0, 0))
|
if (nif->getVersion() <= NIFStream::generateVersion(10, 1, 0, 0))
|
||||||
mAxisOrder = static_cast<AxisOrder>(nif->getInt());
|
mAxisOrder = static_cast<AxisOrder>(nif->get<uint32_t>());
|
||||||
mXRotations = std::make_shared<FloatKeyMap>();
|
mXRotations = std::make_shared<FloatKeyMap>();
|
||||||
mYRotations = std::make_shared<FloatKeyMap>();
|
mYRotations = std::make_shared<FloatKeyMap>();
|
||||||
mZRotations = std::make_shared<FloatKeyMap>();
|
mZRotations = std::make_shared<FloatKeyMap>();
|
||||||
|
|
|
@ -327,7 +327,7 @@ namespace Nif
|
||||||
Vector3KeyMapPtr mTranslations;
|
Vector3KeyMapPtr mTranslations;
|
||||||
FloatKeyMapPtr mScales;
|
FloatKeyMapPtr mScales;
|
||||||
|
|
||||||
enum class AxisOrder
|
enum class AxisOrder : uint32_t
|
||||||
{
|
{
|
||||||
Order_XYZ = 0,
|
Order_XYZ = 0,
|
||||||
Order_XZY = 1,
|
Order_XZY = 1,
|
||||||
|
|
Loading…
Reference in a new issue