From 95ed2f4f20d2d3475718a86fb554b0530d2983fd Mon Sep 17 00:00:00 2001 From: ousnius Date: Wed, 11 Nov 2015 00:10:40 +0100 Subject: [PATCH] Fixed loading anim from NIF --- OutfitProject.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OutfitProject.cpp b/OutfitProject.cpp index 437820fd..ae6b9631 100644 --- a/OutfitProject.cpp +++ b/OutfitProject.cpp @@ -1309,7 +1309,7 @@ int OutfitProject::LoadReferenceNif(const string& fileName, const string& shapeN } else { workNif.CopyFrom(refNif); - workAnim.LoadFromNif(&refNif); + workAnim.LoadFromNif(&workNif); } activeSet.LoadSetDiffData(baseDiffData); @@ -1406,7 +1406,7 @@ int OutfitProject::LoadReference(const string& fileName, const string& setName, } else { workNif.CopyFrom(refNif); - workAnim.LoadFromNif(&refNif); + workAnim.LoadFromNif(&workNif); } if (oldVertCount > 0 && oldVertCount == newVertCount) { @@ -1530,12 +1530,12 @@ int OutfitProject::AddNif(const string& fileName, bool clear, const string& inOu if (workNif.IsValid()) { for (auto &s : nifShapes) { workNif.CopyGeometry(s, nif, s); - workAnim.LoadFromNif(&nif, s); + workAnim.LoadFromNif(&workNif, s); } } else { workNif.CopyFrom(nif); - workAnim.LoadFromNif(&nif); + workAnim.LoadFromNif(&workNif); } return 0;