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

Fowlert/maya 109976/return error code for issues saving #1293

Merged
merged 2 commits into from
Mar 31, 2021

Conversation

fowlertADSK
Copy link
Contributor

No description provided.

@fowlertADSK fowlertADSK requested a review from seando-adsk March 30, 2021 22:54
Comment on lines +288 to +290
# Temporarily disabling this check while investigating why it can fail on certain build combinations
# self.assertFalse(stage.GetPrimAtPath(
# newSessionsPrimPath).IsValid(), msg)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now we want to disable this assert while we investigate why it's asserting on some combinations of the build. I have still not been able to reproduce it locally but there is definitely something going on here.

Comment on lines +41 to +49
// The SaveLayers dialog only handles choosing new names for anonymous layers and making
// sure that they are remapped correctly in either their parent layer or by the owning
// proxy shape. The SaveLayers dialog itself does not currently handle the saving of
// file-backed layers, so for now we will return that we only partiall completed saving.
// This will trigger the LayerManager to double check what needs to be saved and to
// complete the saving of all file-backed layers.
//
return (QDialog::Rejected == dlg.exec()) ? MayaUsd::kAbort
: MayaUsd::kPartiallyCompleted;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was returning that we had successfully saved everything if there weren't any errors, but the Save Layers dialog doesn't actually handle the file-backed layers. The Layer Editor does when saved through there, but the code is not currently in the Dialog with the code to handle anonymous layers. This is something I think we could continue to refactor but for now I'll just return that we only partially handled it. This will indicate to the Layer Manager that it should check what else needs to be handled.

My automated tests did not hit this situation because we only go through this code path when the UI is running and we don't currently have automated tests for that.

@kxl-adsk kxl-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Mar 31, 2021
@kxl-adsk kxl-adsk merged commit 575bcc6 into dev Mar 31, 2021
@kxl-adsk kxl-adsk deleted the fowlert/MAYA-109976/return-error-code-for-issues-saving branch March 31, 2021 08:55
@dj-mcg
Copy link
Collaborator

dj-mcg commented Mar 31, 2021

Awesome, thanks for digging into this, @fowlertADSK!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

4 participants