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

EMSUSD-80 avoid creating an extra transform when in a prototype #3315

Merged
merged 1 commit into from
Sep 8, 2023

Conversation

pierrebai-adsk
Copy link
Collaborator

  • When in a prototype, do not create an extra transform node.
  • Adjust the related import tests, which were already mentioning those extra nodes.

@pierrebai-adsk pierrebai-adsk added the adsk Related to Autodesk plugin label Sep 7, 2023
@pierrebai-adsk pierrebai-adsk added the enhancement New feature or request label Sep 7, 2023
- When in a prototype, do not create an extra transform node.
- Don't add 'Shape' to the shape name.
- Adjust the related import tests, which were already mentioning those extra nodes.
Copy link
Collaborator

@vlasovi vlasovi left a comment

Choose a reason for hiding this comment

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

Looks good

sel = om.MGlobal.getSelectionListByName(node)
except Exception:
self.assertTrue(False, 'Could not find node %s' % node)
self.assertEqual(sel.length(), 1, 'Could not find node %s' % node)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The goal of this change is to get a better error message on test failure.

@pierrebai-adsk
Copy link
Collaborator Author

Only failure is one PF that lost connection after all tests ran and succeeded, so I'm marking this as ready for merge.

@pierrebai-adsk pierrebai-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Sep 7, 2023
@seando-adsk seando-adsk merged commit a6596c2 into dev Sep 8, 2023
@seando-adsk seando-adsk deleted the bailp/EMSUSD-80/import-extra-shape-node branch September 8, 2023 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adsk Related to Autodesk plugin enhancement New feature or request 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