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

3MFLoader: Fix parsing of assets with sub models. #30491

Merged
merged 3 commits into from
Feb 10, 2025

Conversation

Jack-J-Young
Copy link
Contributor

Related issue: #30174

Description

Some 3MF files with with production extension would not load as the root model can contain a path key used to reference a models outside the current file (still in the 3MF archive)

Only the root model can contain these references so reversing the build order is a simple fix for this.
Ref (Chapter 2): Further, only a component element in the root model file MAY contain a path attribute. Non-root model file components MUST only reference objects in the same model file.

There are models with the extension to test in the related issue, I also tested models without and they were unaffected.

@Mugen87 Mugen87 changed the title 3MFLoader fix for production extension 3MFLoader: Fix parsing of assets with sub models. Feb 10, 2025
@Mugen87 Mugen87 added this to the r174 milestone Feb 10, 2025
@Mugen87 Mugen87 merged commit 7b4b9ff into mrdoob:dev Feb 10, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants