Skip to content

[SM64] Fix animation exporter and importer for Blender 5.1#706

Merged
Dragorn421 merged 2 commits into
Fast-64:mainfrom
Lilaa3:fix-animation-exporter
May 24, 2026
Merged

[SM64] Fix animation exporter and importer for Blender 5.1#706
Dragorn421 merged 2 commits into
Fast-64:mainfrom
Lilaa3:fix-animation-exporter

Conversation

@Lilaa3
Copy link
Copy Markdown
Collaborator

@Lilaa3 Lilaa3 commented May 24, 2026

No description provided.

@Lilaa3 Lilaa3 added bug Something isn't working sm64 Has to do with the Super Mario 64 side labels May 24, 2026
Copy link
Copy Markdown
Contributor

@Dragorn421 Dragorn421 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any idea why this is required and why the error this fixes pops up only in blender 5.1 ?

@Dragorn421 Dragorn421 changed the title [SM64] Fix animation exporter [SM64] Fix animation exporter and importer for Blender 5.1 May 24, 2026
@Dragorn421
Copy link
Copy Markdown
Contributor

This fixes errors when import/export ing sm64 animations in Blender 5.1

The changelog for Blender 5.1 mentions upgrading python according to "VFX platform 2026" https://developer.blender.org/docs/release_notes/5.1/python_api/

If we go look at that "VFX platform" specs, we can see that numpy is bumped from 1.26.x to 2.3.x (!) https://vfxplatform.com/component.html?id=numpy

Hence we're experiencing numpy 2.0.0 breaking changes

In particular (see e.g. https://numpy.org/doc/stable/numpy_2_0_migration_guide.html#changes-to-numpy-data-type-promotion ) adding an integer (python int) to e.g. a np.uint16 value, now raises an exception on overflow

Hence the fixes in this PR which consist in converting numpy integers to python integers

@Dragorn421 Dragorn421 merged commit 91006e6 into Fast-64:main May 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working sm64 Has to do with the Super Mario 64 side

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants