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

Editor view can be moved to infinity, making the scene permanently uneditable #80755

Closed
KoBeWi opened this issue Aug 18, 2023 · 3 comments · Fixed by #81076
Closed

Editor view can be moved to infinity, making the scene permanently uneditable #80755

KoBeWi opened this issue Aug 18, 2023 · 3 comments · Fixed by #81076

Comments

@KoBeWi
Copy link
Member

KoBeWi commented Aug 18, 2023

Godot version

4.2 ff5c884

System information

Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 (NVIDIA; 30.0.15.1403) - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 Threads)

Issue description

Using expressions, you can move a node to infinity. When you focus on the node afterwards, the 2D editor becomes unusable:

godot.windows.editor.dev.x86_64_DrGYzyl3bg.mp4

You can't pan or center on other objects, no node is visible in the viewport. If you save the scene in this state, the edit state file saves ofs = Vector2(nan, nan), making the scene uneditable until you fix the edit state file in the .godot folder.

Steps to reproduce

  1. Add some 2D node
  2. Change it's position to infinity (can't be directly entered; use pow() method)
  3. Focus on that object by pressing F

Minimal reproduction project

N/A

EDIT:
Apparently #80699 is required to use pow(). Not sure how to make inf otherwise.

@MewPurPur
Copy link
Contributor

MewPurPur commented Aug 24, 2023

It's possible to break Godot with big values without pow, I've done it before. Try tan(PI/2)

@KoBeWi
Copy link
Member Author

KoBeWi commented Aug 28, 2023

tan(PI/2) gives 16331239480885248

@MewPurPur
Copy link
Contributor

Oh, true. It does break Godot though but it's probably a different bug.

log(0) tho I'm sure did an infinity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants