-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Set a minimum zoom of 1% on the tileset editor #57329
Set a minimum zoom of 1% on the tileset editor #57329
Conversation
a9c91aa
to
e481866
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works alright (not sure about the EDSCALE part though).
Yeah, I put the EDSCALE part there because it's what |
EDSCALE is the scale of the editor (you can set it in Editor Settings). 1000 is insane value, so it won't be a problem. |
Maybe this would be a better/more consistent way to do it? |
Setting a max zoom would also prevent reaching insane 40-digit zoom levels. |
I'd probably the clamp the zoom to a factor of 100 (that is, 10000%). |
… editor Fixes issue godotengine#57292 where zooming out too much stops you from being able to zoom back in
e481866
to
c66ab56
Compare
After testing with different editor scales I discovered dividing by EDSCALE was unnecessary. I set the minimum zoom to 1% and the maximum to 10000%. |
Thanks! We discussed this in a PR review meeting and found that this is fine as an ad hoc solution, but it would be good to rework things in |
Fixes #57292 where zooming out too much stops you from being able to zoom back in.