Skip to content

Commit

Permalink
Fixed crashes of the 'Fix invalid UV mapping' operator.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nusiq committed Sep 21, 2023
1 parent 1cdd56f commit 19bd845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mcblend/operator_func/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def fix_uvs(context: Context) -> Vector2di:
raise RuntimeError('Invalid state')
# Apply new_crds to the UV
ordered_loop_indices = np.array(
polygon.side.loop_indices)[[polygon.order]]
polygon.side.loop_indices)[polygon.order,]
for i, loop_index in enumerate(ordered_loop_indices):
uv_layer.data[loop_index].uv = new_crds[i]
fixed_faces += 1
Expand Down

0 comments on commit 19bd845

Please sign in to comment.