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

ImGuizmo::Manipulate dont returns true on bounds manipulation #351

Open
sonoro1234 opened this issue Nov 29, 2024 · 2 comments
Open

ImGuizmo::Manipulate dont returns true on bounds manipulation #351

sonoro1234 opened this issue Nov 29, 2024 · 2 comments

Comments

@sonoro1234
Copy link
Contributor

Hello,

Is there any reason for ImGuizmo::Manipulate not returning true on bounds manipulation. I would find it useful because I only modify object matrix when Manipulate returns true.

@CedricGuillemet
Copy link
Owner

no good reason. I'll be glad to review a PR for that :)

@sonoro1234
Copy link
Contributor Author

I have tried monitoring scale on HandleAndDrawLocalBounds (https://github.com/CedricGuillemet/ImGuizmo/blob/master/ImGuizmo.cpp#L1894) by checking the length of the three vertical vectors on that matrix. I expected that lenght==1 would mean bounds are not changed, but sometimes this values are not 1 even if bounds are not modified (just doing mouse click on a bounds point) If mouse if clicked again on the same point values are then 1.

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

No branches or pull requests

2 participants