Skip to content

Conversation

@Lilaa3
Copy link
Collaborator

@Lilaa3 Lilaa3 commented Aug 31, 2025

Instead of always running upgrade code on new objects/bones/scenes on file load, we make sure they get the new version as soon as possible. This is ideal considering we are gathering properties from keys that could be very likely exist in another addon.

That said, I feel like there has to be a better approach to this? I can´t really figure out one. This does work it just feels hacky I guess, even if this is how materials work.

Related to Property versioning system is broken #179

@Yanis002 Would this work for oot too? Is it even worth it considering oot at least uses oot as a prefix in old names aha.

Instead of always running upgrade code on new objects/bones/scenes on file load, we make sure they get the new version as soon as possible. This is ideal considering we are gathering properties from keys that could be very likely exist in another addon.

That said, I feel like there has to be a better approach to this? I can´t really figure out one. This does work it just feels hacky I guess, even if this is how materials work.
@Lilaa3 Lilaa3 added sm64 Has to do with the Super Mario 64 side codebase Code maintenance/cleanup labels Aug 31, 2025
@Yanis002
Copy link
Collaborator

this should probably work for OoT but is it still upgrading blends like before? I don't really follow what's going on

@Lilaa3
Copy link
Collaborator Author

Lilaa3 commented Aug 31, 2025

this should probably work for OoT but is it still upgrading blends like before? I don't really follow what's going on

Yes, its just that new scenes/objects/bones are immediately set to the current version so those don´t have upgrade code run on them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

codebase Code maintenance/cleanup 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