Skip to content

Commit

Permalink
Changed max bones per partition
Browse files Browse the repository at this point in the history
  • Loading branch information
ousnius committed Sep 8, 2016
1 parent a63359e commit 8c18d7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/files/NifFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2550,8 +2550,8 @@ void NifFile::UpdateSkinPartitions(const string& shapeName) {
vector<bool> usedVerts;
usedVerts.resize(numVerts);

// 24 for SK or newer, 18 for rest
int maxBonesPerPartition = hdr.GetUserVersion() >= 12 ? 24 : 18;
// 18 for pre-SK
int maxBonesPerPartition = hdr.GetUserVersion() >= 12 ? numeric_limits<int>::max() : 18;
unordered_map<int, set<int>> partBones;

vector<NiSkinPartition::PartitionBlock> partitions;
Expand Down

0 comments on commit 8c18d7b

Please sign in to comment.