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

Conversion tool: exported variable types are incorrect #75852

Closed
Tracked by #73960
Louis-Simon22 opened this issue Apr 9, 2023 · 0 comments · Fixed by #75900
Closed
Tracked by #73960

Conversion tool: exported variable types are incorrect #75852

Louis-Simon22 opened this issue Apr 9, 2023 · 0 comments · Fixed by #75900

Comments

@Louis-Simon22
Copy link

Godot version

4.0.2.stable

System information

Ubuntu 22.10

Issue description

This happens when converting a godot3 project to a godot4 project.
Godot3 source

extends Node2D

export(int) var integer := 2
export(Resource) var resource: Resource = null

Result

extends Node2D

@export var integer: int := 2
@export var resource: Resource: Resource = null

Expected result

extends Node2D

@export var integer := 2
@export var resource: Resource = null

If someone can point to where in the code this might be fixed maybe I can fix it myself, sounds like a good first issue.

Steps to reproduce

Open the given project (or any project really) and convert it to a godot 4 project

Minimal reproduction project

Conversion Tool Typing Problem.zip

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