-
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
Undo of delete must update stage cache. #2503
Conversation
lib/mayaUsd/ufe/UsdStageMap.cpp
Outdated
@@ -83,6 +86,16 @@ inline Ufe::Path::Segments::size_type nbPathSegments(const Ufe::Path& path) | |||
#endif | |||
} | |||
|
|||
inline Ufe::Path toPath(const std::string& pathString) |
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.
I almost feel like we should put this in some util function, it has come up a few times in the past... I know I've been bitten a lot by it in unit test (but that is in Python, irrelevant here.)
Assigned the Jira ticket to you so you can resolve it to QA when the tests pass. |
@@ -147,6 +147,53 @@ def testDeleteStage(self): | |||
# Request the now dead proxy shape. This should not crash. | |||
result = handler.findGatewayItems(proxyShapePath) | |||
|
|||
@unittest.skipUnless(ufeUtils.ufeFeatureSetVersion() >= 2, 'testDeleteStageUndo uses PathString which is only available in UFE v2 or greater.') |
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.
Thanks to @pierrebai-adsk for the test.
No description provided.