From e1062f07eec50ec745c37dac13232ae62bd6f4d1 Mon Sep 17 00:00:00 2001 From: Alex Foster <123afoster@gmail.com> Date: Sun, 2 Feb 2025 13:44:38 -0800 Subject: [PATCH] remove unnecessary param in vertmesh::assignvert --- src/engine/model/vertmodel.cpp | 2 +- src/engine/model/vertmodel.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/model/vertmodel.cpp b/src/engine/model/vertmodel.cpp index d5d4a043..3128263e 100644 --- a/src/engine/model/vertmodel.cpp +++ b/src/engine/model/vertmodel.cpp @@ -141,7 +141,7 @@ void vertmodel::vertmesh::genshadowmesh(std::vector &out, const matrix } } -void vertmodel::vertmesh::assignvert(vvertg &vv, int j, const tcvert &tc, const vert &v) +void vertmodel::vertmesh::assignvert(vvertg &vv, const tcvert &tc, const vert &v) { vv.pos = vec4(v.pos, 1); vv.tc = tc.tc; diff --git a/src/engine/model/vertmodel.h b/src/engine/model/vertmodel.h index d93ffc85..3dc502d1 100644 --- a/src/engine/model/vertmodel.h +++ b/src/engine/model/vertmodel.h @@ -60,7 +60,7 @@ class vertmodel : public animmodel void genBIH(BIH::mesh &m) const override final; void genshadowmesh(std::vector &out, const matrix4x3 &m) const override final; - static void assignvert(vvertg &vv, int j, const tcvert &tc, const vert &v); + static void assignvert(vvertg &vv, const tcvert &tc, const vert &v); template int genvbo(std::vector &idxs, int offset, std::vector &vverts, int *htdata, int htlen) @@ -76,7 +76,7 @@ class vertmodel : public animmodel const vert &v = verts[index]; const tcvert &tc = tcverts[index]; T vv; - assignvert(vv, index, tc, v); + assignvert(vv, tc, v); const auto hashfn = std::hash(); const int htidx = hashfn(v.pos)&(htlen-1); for(int k = 0; k < htlen; ++k)