Skip to content

Commit 95f47fa

Browse files
committed
Fixed the issue with importing models that usse per-face UV mapping in Blender 3.6. Close #111.
1 parent a4e1830 commit 95f47fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mcblend/operator_func/common.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,8 @@ def uv_layer_coordinates(
696696
from the uv_layer. The order of the coordinates in the array is
697697
defined by self.order (left bottom, right bottom, right top, left top)
698698
'''
699-
ordered_loop_indices = np.array(self.side.loop_indices)[[self.order]]
699+
# The indexing must be a tuple to work with numpy, see issue #111
700+
ordered_loop_indices = np.array(self.side.loop_indices)[(self.order,)]
700701
crds = np.array([get_data(uv_layer)[i].uv for i in ordered_loop_indices])
701702
return crds
702703

0 commit comments

Comments
 (0)