You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exporting a project removes type information, causing floats to be treated as ints.
It is a severe concern that something can work in the editor version and not in an exported version. This would require me to re-check every change I make with the exported version.
Steps to reproduce
Given the following GDScript:
export(float) var something =3
var other
func _ready():
other = something /8
When run from the editor, other will be 0.375. When run from an exported project, other will be 0.
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered:
Confirmed in 3.5 beta 1, and I've checked and it wasn't fixed by #57851.
akien-mga
changed the title
Numbers are treated as different types when run from editor than from exported project
Numbers are treated as different types when run from editor than from release builds
Feb 10, 2022
Godot version
3.2.3.stable
System information
Windows 10
Issue description
Exporting a project removes type information, causing floats to be treated as ints.
It is a severe concern that something can work in the editor version and not in an exported version. This would require me to re-check every change I make with the exported version.
Steps to reproduce
Given the following GDScript:
When run from the editor,
other
will be0.375
. When run from an exported project,other
will be 0.Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: