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

Changing export float to INF, then saving will write inf.0 to tscn and prevent it from opening #35388

Closed
nathanfranke opened this issue Jan 20, 2020 · 2 comments · Fixed by #36042

Comments

@nathanfranke
Copy link
Contributor

Godot version:
3.2 RC 2

OS/device including version:
Linux Mint 19.3

Issue description:
Setting an export(float) through code such as my_float_value = INF followed by saving will save the float to the tscn file with a value inf.0.

Steps to reproduce:

$ cat TestScene.tscn
...
[node name="TestScene" type="Node2D"]
script = ExtResource( 1 )
my_float_value = inf.0

Minimal reproduction project:
Test1.zip

@tastesliketriangle
Copy link

I was able to reproduce this error. On Windows 7 with a version of godot built from source a couple weeks ago.

@aaronfranke
Copy link
Member

Can reproduce on Linux (Ubuntu 18.04 64-bit, 3.2 rc2), same error as described in the OP.

Can't reproduce on Windows 10 (3.2 rc2). In the editor it says 1.#IO, but 1.#INF is saved into the TSCN file. Still a weird issue, but neither causes the file from failing to load.

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.

6 participants