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-123044: As a user, I'd like to see orphaned objects' icons dimmed #2561

Merged
merged 2 commits into from
Aug 24, 2022

Conversation

seando-adsk
Copy link
Collaborator

MAYA-123044: As a user, I'd like to see orphaned objects' icons dimmed

  • Set icon disabled with Maya object is orphaned.
  • Added unit test for tree view cell info and icon in this orphaned case.

* Set icon disabled with Maya object is orphaned.
* Added unit test for tree view cell info and icon in this
  orphaned case.
@seando-adsk seando-adsk added the ufe-usd Related to UFE-USD plugin in Maya-Usd label Aug 22, 2022
@seando-adsk seando-adsk requested a review from ppt-adsk August 22, 2022 19:57
Ufe::UIInfoHandler::Icon icon;
if (isOrphaned(mayaItem)) {
icon = Ufe::UIInfoHandler::Icon("", "orphaned_node_badge", Ufe::UIInfoHandler::LowerRight);
icon.mode = UIInfoHandler::Disabled;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Set icon disabled when orphaned.

Comment on lines +94 to +96
if os.getenv('UFE_PREVIEW_VERSION_NUM', '0000') >= '4029':
# Ball_3 should have a "normal" icon mode.
self.assertEqual(ufe.UIInfoHandler.Normal, icon.mode)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

icon mode was added to Ufe 0.4.29

ppt-adsk
ppt-adsk previously approved these changes Aug 23, 2022
@seando-adsk seando-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Aug 24, 2022
@seando-adsk seando-adsk merged commit bf9f410 into dev Aug 24, 2022
@seando-adsk seando-adsk deleted the donnels/MAYA-123044/dim_orphaned_object_icon branch August 24, 2022 15:02
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 ufe-usd Related to UFE-USD plugin in Maya-Usd
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants