Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blender 3.6 crashes during model importing causes by updated numpy version #111

Closed
Nusiq opened this issue Jul 15, 2023 · 0 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@Nusiq
Copy link
Owner

Nusiq commented Jul 15, 2023

Mcblend relied on numpy behavior which is now deprecated. Here is a future warning from Blender 3.3:

 FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use
`arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array index,
`arr[np.array(seq)]`, which will result either in an error or a different result.

In Blender 3.6 this type of indexing returns different result. The image below shows the comparison between Blender 3.6 and Blender 3.3.

image

This causes issues during model importing for models that use per-face UV-mapping at lines linked below:

ordered_loop_indices = np.array(self.side.loop_indices)[[self.order]]
crds = np.array([get_data(uv_layer)[i].uv for i in ordered_loop_indices])

@Nusiq Nusiq added the bug Something isn't working label Jul 15, 2023
@Nusiq Nusiq self-assigned this Jul 15, 2023
@Nusiq Nusiq changed the title Blender 3.5 crashes during model importing causes by updated numpy version Blender 3.6 crashes during model importing causes by updated numpy version Jul 15, 2023
@Nusiq Nusiq closed this as completed in 95f47fa Jul 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant