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

Fix Flattening Bounds Control Bug #12

Conversation

marlenaklein-msft
Copy link
Contributor

A bug occurs when setting Bounds Control's Flatten Mode to Auto or Always, specifically when the GO's scale does not correspond to the bounding box scale.

In SqueezableBoxVisuals, the flattenVector is currently set at Awake(), but the transform changes after this and the flattenVector is not updated, leading to the bug. Based on the old value, it will try to flatten along the wrong axis, which causes problems in subsequent calculations (negative values and division by 0). Fix to simply update flattenVector before calculations.

@marlenaklein-msft marlenaklein-msft merged commit 1dccbda into MixedRealityToolkit:main Aug 10, 2023
4 checks passed
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.

2 participants