Skip to content

EMSUSD-2278 - Creating or parenting a camera under a USD def will crash Maya #4177

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

Conversation

samuelliu-adsk
Copy link
Collaborator

No description provided.

@samuelliu-adsk samuelliu-adsk self-assigned this Apr 2, 2025
Copy link
Collaborator

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

There should be a new unit test that does exactly what the JIRA item says. Test which creates a camera under a def. Please add the test first without this change and verify that the test fails (it should crash). Then add your new fix and the test should pass.

@samuelliu-adsk samuelliu-adsk force-pushed the samuelliu-adsk/EMSUSD-2278/create_camera_under_def_crash branch 2 times, most recently from cb5d89a to ea73072 Compare April 4, 2025 21:45
self.assertSnapshotClose('%s_invisibile.png' % (self._testName))
object3d.setVisibility(True)
self.assertSnapshotClose('%s_visibile.png' % (self._testName))

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added camera creation under scope and def. Also added tests to test camera visibility if its parent is set to invisible

@samuelliu-adsk samuelliu-adsk force-pushed the samuelliu-adsk/EMSUSD-2278/create_camera_under_def_crash branch from ea73072 to 7e3c3ff Compare April 4, 2025 21:51
@samuelliu-adsk
Copy link
Collaborator Author

My commit history is totally messed up.. Will create a new one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants