Skip to content

Commit

Permalink
Ensure we stick to the length of the array that is assigned to (nbt #1)
Browse files Browse the repository at this point in the history
  • Loading branch information
joepal1976 committed Mar 7, 2018
1 parent 7006462 commit a5b4e3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion makehuman/core/module3d.py
Expand Up @@ -308,7 +308,7 @@ def filterMaskedVerts(self, other, update=True):
fuvs = self.fuvs[self.face_mask]
uv_idx = np.unique(fuvs.reshape(-1))
inverse_uv_idx = - np.ones(self.texco.shape[0], dtype=np.int32)
inverse_uv_idx[uv_idx] = np.arange(self.texco.shape[0], dtype=np.int32)
inverse_uv_idx[uv_idx] = np.arange(uv_idx.shape[0], dtype=np.int32)
for i in range(self.vertsPerPrimitive):
fuvs[:,i] = inverse_uv_idx[fuvs[:,i]]

Expand Down

0 comments on commit a5b4e3f

Please sign in to comment.