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-106190 - As a user, I would like see prim type icons #712

Merged
merged 3 commits into from
Aug 19, 2020

Conversation

seando-adsk
Copy link
Collaborator

MAYA-106190 - As a user, I would like see prim type icons

  • Implement new ancestorNodeTypes() method on Ufe::SceneItem.

* Implement new ancestorNodeTypes() method on Ufe::SceneItem.
Copy link
Collaborator Author

@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.

I also have changes in Maya to support this. Note: the USD icons are not ready yet. Once they are that will be a separate commit to add them.

Comment on lines +54 to +59
// According to the USD docs GetAllAncestorTypes() is expensive, so we keep a cache.
static std::map<TfType, std::vector<std::string>> ancestorTypesCache;
const auto iter = ancestorTypesCache.find(schemaType);
if (iter != ancestorTypesCache.end()) {
return iter->second;
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Keep a cache (key'd by schema type) for faster lookup.

@seando-adsk seando-adsk requested a review from ppt-adsk August 13, 2020 20:29
@seando-adsk seando-adsk added enhancement New feature or request requires maya This issue requires changes in Maya labels Aug 13, 2020
Copy link
Collaborator

@ppt-adsk ppt-adsk left a comment

Choose a reason for hiding this comment

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

Needs a test, but otherwise looks good.

@kxl-adsk kxl-adsk added the workflows Related to in-context workflows label Aug 13, 2020
@seando-adsk
Copy link
Collaborator Author

@ppt-adsk The second after I created the pull-request I knew I was missing a test.

@seando-adsk seando-adsk requested a review from ppt-adsk August 13, 2020 21:17
@seando-adsk seando-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Aug 18, 2020
@seando-adsk
Copy link
Collaborator Author

@kxl-adsk Can we merge this. My preflight has failed twice on different OSX python2 builds (once in 2020 and once in master) with test errors. The latest test failure was:

     18/109 Test  #19: testParentCmd ...................................***Failed    8.80 sec
    Error: line 1: Cannot find procedure "mayaUsd_pluginBatchLoad".

* Rework to support previous versions (down to 19.11) of USD.
@kxl-adsk kxl-adsk merged commit ed56b08 into dev Aug 19, 2020
@kxl-adsk kxl-adsk deleted the donnels/MAYA-106190/prim_type_icons branch August 19, 2020 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ready-for-merge Development process is finished, PR is ready for merge requires maya This issue requires changes in Maya workflows Related to in-context workflows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants