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

MAYA-127737 allow loading relative sub layers #2902

Merged
merged 3 commits into from
Mar 13, 2023

Conversation

pierrebai-adsk
Copy link
Collaborator

  • 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.
@pierrebai-adsk pierrebai-adsk changed the base branch from dev to bailp/MAYA-127404/save-relative-sub-layers February 24, 2023 19:46
Base automatically changed from bailp/MAYA-127404/save-relative-sub-layers to dev March 9, 2023 13:31
@pierrebai-adsk pierrebai-adsk added enhancement New feature or request adsk Related to Autodesk plugin labels Mar 9, 2023
seando-adsk
seando-adsk previously approved these changes Mar 13, 2023
Copy link
Collaborator

@seando-adsk seando-adsk left a 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.

Comment on lines +305 to +307
for (std::string& fileName : files) {
fileName = getPathRelativeToLayerFile(fileName, parentLayer);
}
Copy link
Collaborator

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.

@pierrebai-adsk pierrebai-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Mar 13, 2023
@seando-adsk seando-adsk merged commit 04bb581 into dev Mar 13, 2023
@seando-adsk seando-adsk deleted the bailp/MAYA-127737/load-relative-sub-layer branch March 13, 2023 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adsk Related to Autodesk plugin enhancement New feature or request ready-for-merge Development process is finished, PR is ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants