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

Fix parts with subpath #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vjeffPeters
Copy link

When trying to import a model with a part that has a sub-file reference located in a subfolder of parts folder, you receive the error "Missing part or wrong part ! Find it in the url from debug console"

It does it when there are sub-file references even when the file does exist in the subfolder.
When getting the filename for the key in the _Parts dictionary, the extra path is not taken into account.

Fixed issue in the LDrawConfig.cs file in the InitParts() method. If the part is a sub-file and therefore in a child folder, an extra step is required to remove the subpath from the complete path to obtain the filename by itself.

This assumes only single depth subfolders are used in the Parts folder per LDraw specifications.

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