Skip to content

Commit

Permalink
Fixed UVs in batch build and crash with zaps after 7c227da
Browse files Browse the repository at this point in the history
  • Loading branch information
ousnius committed Nov 20, 2016
1 parent b774c55 commit 98f5a70
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
Binary file modified BodySlide.rc
Binary file not shown.
15 changes: 11 additions & 4 deletions src/program/BodySlideApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,8 @@ void BodySlideApp::RebuildPreviewMeshes() {
previewBaseNif->GetUvsForShape(it->second, uvs);
vertsHigh = verts;
vertsLow = verts;
uvsHigh = uvs;
uvsLow = uvs;

ApplySliders(it->first, sliderManager.slidersBig, vertsHigh, zapIdx, &uvsHigh);
if (activeSet.GenWeights())
Expand Down Expand Up @@ -1850,11 +1852,16 @@ int BodySlideApp::BuildListBodies(vector<string>& outfitList, map<string, string
continue;
}

currentDiffs.ApplyDiff(dn, target, vbig, &vertsHigh);
currentDiffs.ApplyUVDiff(dn, target, vbig, &uvsHigh);
if (currentSet[s].bUV)
currentDiffs.ApplyUVDiff(dn, target, vbig, &uvsHigh);
else
currentDiffs.ApplyDiff(dn, target, vbig, &vertsHigh);

if (currentSet.GenWeights()) {
currentDiffs.ApplyDiff(dn, target, vsmall, &vertsLow);
currentDiffs.ApplyUVDiff(dn, target, vsmall, &uvsLow);
if (currentSet[s].bUV)
currentDiffs.ApplyUVDiff(dn, target, vsmall, &uvsLow);
else
currentDiffs.ApplyDiff(dn, target, vsmall, &vertsLow);
}
}

Expand Down

0 comments on commit 98f5a70

Please sign in to comment.