Skip to content

Commit af3c884

Browse files
simplify index mapping
Because projections already expects local coordinates - as provided by weight_pair.first - there is no mapping neccessary at all.
1 parent 5f21841 commit af3c884

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libs/tex/generate_texture_patches.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,7 @@ bool fill_hole(std::vector<std::size_t> const & hole, UniGraph const & graph,
377377
by[idx[j]] = 0.0f;
378378
for (it = weights.begin(); it != weights.end(); ++it) {
379379
if (is_border[it->first]) {
380-
std::size_t border_vertex_id = l2g[it->first];
381-
math::Vec2f projection = projections[g2l[border_vertex_id]];
380+
math::Vec2f projection = projections[it->first];
382381
bx[idx[j]] += projection[0] * it->second;
383382
by[idx[j]] += projection[1] * it->second;
384383
} else {

0 commit comments

Comments
 (0)