-
Notifications
You must be signed in to change notification settings - Fork 202
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
MAYA-127737 allow loading relative sub layers #2902
Conversation
pierrebai-adsk
commented
Feb 24, 2023
- Add UI to load-layer file dialog to make the file path relative, in MEL.
- Modify the overall load-layer dialog to support relative sub-layers.
- Add UI to load-layer file dialog to make teh file path relative, in MEL. - Modify the overall load-layer dialog to support relative sub-layers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good. Just one minor thing about possibly adding a code comment. If you do, just add a PR saying that all you added was code comment and no need to run preflight again.
for (std::string& fileName : files) { | ||
fileName = getPathRelativeToLayerFile(fileName, parentLayer); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It wasn't immediately obvious to me here that you were replacing the paths in the files array with relative paths. Maybe add a comment saying that is what is happening.