From 50a5d53b41d892520e9d8b8c35a88b1b598cc78d Mon Sep 17 00:00:00 2001 From: Alexei Kotov Date: Tue, 5 Sep 2023 00:11:41 +0300 Subject: [PATCH] Modernize NiKeyframeData --- components/nif/data.cpp | 2 +- components/nif/data.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/nif/data.cpp b/components/nif/data.cpp index aed18619e1..185684e4a3 100644 --- a/components/nif/data.cpp +++ b/components/nif/data.cpp @@ -509,7 +509,7 @@ namespace Nif if (mRotations->mInterpolationType == InterpolationType_XYZ) { if (nif->getVersion() <= NIFStream::generateVersion(10, 1, 0, 0)) - mAxisOrder = static_cast(nif->getInt()); + mAxisOrder = static_cast(nif->get()); mXRotations = std::make_shared(); mYRotations = std::make_shared(); mZRotations = std::make_shared(); diff --git a/components/nif/data.hpp b/components/nif/data.hpp index eaf8120e81..3f548e361c 100644 --- a/components/nif/data.hpp +++ b/components/nif/data.hpp @@ -327,7 +327,7 @@ namespace Nif Vector3KeyMapPtr mTranslations; FloatKeyMapPtr mScales; - enum class AxisOrder + enum class AxisOrder : uint32_t { Order_XYZ = 0, Order_XZY = 1,