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

isUsing equivalent for ViewManipulate? #240

Closed
mCodingLLC opened this issue Apr 27, 2022 · 6 comments
Closed

isUsing equivalent for ViewManipulate? #240

mCodingLLC opened this issue Apr 27, 2022 · 6 comments

Comments

@mCodingLLC
Copy link

Currently isUsing and friends tell you whether you are using the Manipulate gizmos (translate, rotate, scale), but there doesn't seem to be any way to query whether you are using the ViewManipulate gizmo.

I think this could be achieved by moving some of the static state in ViewManipulate into global state and repeating what is done for isUsing.

Or am I missing some function of how to query this state?

@CedricGuillemet
Copy link
Owner

I think that's the way to go, yes.

@mgerhardy
Copy link
Contributor

There is a commit in #170 that does this as far as I can see.

@rherilier
Copy link
Contributor

@CedricGuillemet: I can provide a PR for this functionality. Do you prefer that IsUsing() returns true when ViewManipulate(...) is active or a new function IsUsingViewManipulate() as proposed in one of the commit of #170?

@CedricGuillemet
Copy link
Owner

I'd prefer a new function. To not break back compatibility and for more clarity.

@rherilier
Copy link
Contributor

ok

@rherilier
Copy link
Contributor

@CedricGuillemet: this issue can be closed

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

3 participants