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

[al] Reduce floating point comparison precision to avoid making edit layer dirty #2216

Conversation

csyshing
Copy link
Collaborator

This PR changed the floating point comparison to be GfIsClose() with float type epsilon (1e-7), this is good enough to judge the floating point difference, otherwise AL_USDMaya might write out redundant xformOps thus dirty the edit layer, then could cause the stage recomposing and viewport redrawing unnecessarily.

@csyshing csyshing added the al Related to AnimalLogic plugin label Mar 28, 2022
@seando-adsk seando-adsk requested a review from ppt-adsk March 28, 2022 16:37
@seando-adsk seando-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Apr 6, 2022
@seando-adsk seando-adsk merged commit 8e1cbf4 into Autodesk:dev Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
al Related to AnimalLogic plugin 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