Fix mesh not loading for 3mf files generated by Bambu Studio#70
Open
YoakeNoTenshi wants to merge 1 commit intoGhostkeeper:masterfrom
Open
Fix mesh not loading for 3mf files generated by Bambu Studio#70YoakeNoTenshi wants to merge 1 commit intoGhostkeeper:masterfrom
YoakeNoTenshi wants to merge 1 commit intoGhostkeeper:masterfrom
Conversation
Owner
|
The automated code style check is complaining that there's whitespace characters on an empty line at line 146 of import_3mf.py. I'll fix that up for you if/when merging, it's a really minor thing. |
|
This issue is still present, when will it be fixed? |
|
Blender3mfFormat-1.0.2.zip |
Cheers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is to fix an issue with some 3mf files generated by Bambu Studio as described in #69
Basically the
3dmodel.modelfile contains references to components defined in other model files. So when it tries to build the build/items the script can't find the sub components inresource_objectsand logs the errorBuild item with unknown resource ID. Sub components are loaded inresource_objectslater on but never converted to actual Blender objects.This fix loads all the models in the 3mf file in
resource_objectsand then creates all the Blender objects. This assumes all the object IDs are unique and I don't know if that's actually the case.This was tested with the 3mf file here: https://makerworld.com/en/models/20200#profileId-20736
Before the fix:

After the fix:
