From 57bac3f97f69e53e3f376d1971f4ff7fd9932797 Mon Sep 17 00:00:00 2001 From: ousnius Date: Sun, 19 Apr 2020 18:39:26 +0200 Subject: [PATCH] Fixed vertex data insertion check that broke with e561725 --- src/program/OutfitProject.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/program/OutfitProject.cpp b/src/program/OutfitProject.cpp index b8d7eb91..dce95b91 100644 --- a/src/program/OutfitProject.cpp +++ b/src/program/OutfitProject.cpp @@ -2508,17 +2508,17 @@ void OutfitProject::ApplyShapeMeshUndo(NiShape* shape, const UndoStateShape &uss for (const UndoStateVertex &usv : addVerts) { // ...in nif arrays verts[usv.index] = usv.pos; - if (uvsp && uvsp->size() > usv.index) + if (uvsp && uvs.size() > usv.index) uvs[usv.index] = usv.uv; - if (colorsp && colorsp->size() > usv.index) + if (colorsp && colors.size() > usv.index) colors[usv.index] = usv.color; - if (normalsp && normalsp->size() > usv.index) + if (normalsp && normals.size() > usv.index) normals[usv.index] = usv.normal; - if (tangentsp && tangentsp->size() > usv.index) + if (tangentsp && tangents.size() > usv.index) tangents[usv.index] = usv.tangent; - if (bitangentsp && bitangentsp->size() > usv.index) + if (bitangentsp && bitangents.size() > usv.index) bitangents[usv.index] = usv.bitangent; - if (eyeDatap && eyeDatap->size() > usv.index) + if (eyeDatap && eyeData.size() > usv.index) eyeData[usv.index] = usv.eyeData; // ...in workAnim