-
Notifications
You must be signed in to change notification settings - Fork 79
[USDU-274] Adds new test cases for ImportHelper functions #327
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
de43c01 to
1b5bd43
Compare
vickycl
left a comment
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.
Added some suggestions, overall nice tests and great work!
package/com.unity.formats.usd/Tests/Editor/ImportHelpersTests.cs
Outdated
Show resolved
Hide resolved
| var usdAsObjects = AssetDatabase.LoadAllAssetsAtPath(assetPath); | ||
|
|
||
| // ExpectedGameObjectCount: The Root GameObject | ||
| // ExpectedPrimSourceCount: 0 TODO: Shouldnt there be a prim source object for the root object? |
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.
Is this TODO still valid?
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.
Its more of a question than a TODO - im not sure why there isnt a prim source object for the root object when imported as a Timeline Clip
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.
Possibly a question for @mirceaispas , I think there is no prim source because the root isn't considered an actual prim in USD terms?
package/com.unity.formats.usd/Tests/Editor/ImportHelpersTests.cs
Outdated
Show resolved
Hide resolved
package/com.unity.formats.usd/Tests/Editor/ImportHelpersTests.cs
Outdated
Show resolved
Hide resolved
package/com.unity.formats.usd/Tests/Editor/ImportHelpersTests.cs
Outdated
Show resolved
Hide resolved
vickycl
left a comment
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.
New changes LGTM :)
|
Thank you for the reviews @vickycl @unity-chris ! |
Purpose of this PR
Ticket/Jira #: https://jira.unity3d.com/browse/USDU-274
Adds new test cases for functions within ImportHelper.cs script to increase coverage and to act as an onboarding task for @lee-aandrew
Testing
Functional Testing status:
N/A
Performance Testing status:
N/A
Overall Product Risks
N/A
Complexity:
1
Halo Effect:
1
Additional information
Note to reviewers:
Not sure if this is a bug or a intended way of doing things, but USD.Scene.Write, when given an object of type Parent Class, it will not write anything
For example:
SampleBase testArray[] { SphereSample sphere1, SphereSample sphere2 } // SampleBase is the root parent of SphereSample
Scene.Write("/root/sphere" testArray[0])
The Write in this case would not write anything to the scene