-
Notifications
You must be signed in to change notification settings - Fork 203
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-111932 no USD prompt during crash #1601
Conversation
pierrebai-adsk
commented
Jul 26, 2021
- Detect if the Maya SDK supports the new crash check function.
- If present, use it to determine if Maya is crashing during auto-save.
- If Maya is crashing, avoid asking the user and just save the USD data inside the Maya recovery file.
- Detect if the Maya SDk support the new crash check function. - If present, use it to determine if Maya is crashing durin g auto-save. - If Maya is crashing, avoid asking the user and just save USD data inside the Maya recovery file.
lib/mayaUsd/nodes/layerManager.cpp
Outdated
if (_batchSaveDelegate && _proxiesToSave.length() > 0) { | ||
if (isCrashing()) { | ||
result = kPartiallyCompleted; | ||
opt = MayaUsd::utils::kSaveToUSDFiles; |
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.
Your pull request description says you'll save inside the Maya file when crashing, but your code says save to USD files. Which one should it be?
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.
Is Maya, thanks for catching this.
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.
Lgtm!
@pierrebai-adsk We merged a number of changes. Please resolve merge conflicts and run PF. |
I'll be honest, I don't understand why clang-format made me reformat MenuBuilder.cpp. It seems to me the line was shorter than 100 columns limit...? |