Skip to content

Conversation

@Yanis002
Copy link
Collaborator

@Yanis002 Yanis002 commented Oct 29, 2025

probably a hacky fix but setOrigin now have the annoying side-effect of moving any child object the mesh got, I'm not sure how to fix that properly so I just made it so any object that is a child of a mesh is parented to whatever object the mesh is parented to, so basically moving it by one level in the hierarchy, shouldn't hurt anything

the issue specifically happens in applyRotation in ootDuplicateHierarchy, basically anything that runs bpy.ops.object.transform_apply() will move the objects, idk how to fix that but I think editing the tree of the duplicated objects is good enough, it won't change anything for users anyway since it's a temporary tree 🤷

Note: only tested with scenes but this change also affects DL, collision exporters, which are untested

@Yanis002 Yanis002 added bug Something isn't working oot Has to do with the Ocarina of Time 64 side labels Oct 29, 2025
@Yanis002 Yanis002 force-pushed the setOrigin_aftermath_fix branch 2 times, most recently from 226a82b to 13f7e0a Compare November 1, 2025 22:01
@Yanis002 Yanis002 force-pushed the setOrigin_aftermath_fix branch from 13f7e0a to 3d588c2 Compare November 1, 2025 22:46
Copy link
Contributor

@Reonu Reonu left a comment

Choose a reason for hiding this comment

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

Tested it with an extremely complex scene. Works fine

@Yanis002
Copy link
Collaborator Author

Yanis002 commented Nov 9, 2025

will be merged in 24 hours from now unless something else comes up

@Yanis002 Yanis002 added the merge soon Will be merged in a few days at most if nothing else comes up label Nov 9, 2025
@Yanis002 Yanis002 merged commit 63b3a6c into Fast-64:main Nov 10, 2025
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 merge soon Will be merged in a few days at most if nothing else comes up oot Has to do with the Ocarina of Time 64 side

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants