Skip to content

Commit

Permalink
Fixed loading anim from NIF
Browse files Browse the repository at this point in the history
  • Loading branch information
ousnius committed Nov 10, 2015
1 parent 729a6e7 commit 95ed2f4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions OutfitProject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 95ed2f4

Please sign in to comment.