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

MAYA105624 make xform reading more uniform #1127

Merged
merged 2 commits into from
Feb 4, 2021

Conversation

pierrebai-adsk
Copy link
Collaborator

There are two private functions that reads transforms: _pushUSDXformOpToMayaXform() and _pushUSDXformToMayaXform().

The first was using the earliest-time time code when no time interval were used for importing. The other was using default-time.

Using default-time prevented importing the transform since their time code did not match and the iimportaed mesh would have bad transform (they would all have identity matrix).

This change make both code paths use earliest-time. This fixes bad import of geometry when not importing animation data in Maya.

There are two private functions that reads transforms: _pushUSDXformOpToMayaXform() and _pushUSDXformToMayaXform().

The first was using the earliest-time time code when no time interval were used for importing. The other was using default-time.

Using default-time prevented importing the transform since their time code did not match and the iimportaed mesh would have bad transform (they would all have identity matrix).

This change make both code paths use earliest-time. This fixes bad import of geometry when not importing animation data in Maya.
@kxl-adsk kxl-adsk added the import-export Related to Import and/or Export label Jan 28, 2021
@kxl-adsk
Copy link

kxl-adsk commented Feb 2, 2021

@pierrebai-adsk Would you mind adding a unit test to this PR?

Copy link
Contributor

@mattyjams mattyjams 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 to me too, but yeah, a small unit test would be great.

Thanks!

@pierrebai-adsk pierrebai-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Feb 3, 2021
@kxl-adsk kxl-adsk merged commit 051bff2 into dev Feb 4, 2021
@kxl-adsk kxl-adsk deleted the t_bailp/MAYA-105624/fix-bad-xform-no-anim-data branch February 4, 2021 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
import-export Related to Import and/or Export 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