From 19bd8458c347ab3742f7430c8ccfbc7f83d42c07 Mon Sep 17 00:00:00 2001 From: Nusiq Date: Thu, 21 Sep 2023 18:26:42 +0200 Subject: [PATCH] Fixed crashes of the 'Fix invalid UV mapping' operator. --- mcblend/operator_func/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mcblend/operator_func/__init__.py b/mcblend/operator_func/__init__.py index 23e1f80..ccf2437 100644 --- a/mcblend/operator_func/__init__.py +++ b/mcblend/operator_func/__init__.py @@ -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