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

[4.1] Always write the importer version to .import files #84062

Closed

Conversation

aaronfranke
Copy link
Member

Godot 4.0 and 4.1 already have an importer version system, but the number is just... not written if it's 0. I think we should always write the importer version, so future importers can unambiguously know the importer version.

This was driven by a desire to make the version more explicit for #84034, but this is not required for #84034 to work.

@AThousandShips
Copy link
Member

AThousandShips commented Oct 27, 2023

Is it guaranteed to return a non-negative number? Otherwise maybe add a MAX, the existing code writes when >= 0

@aaronfranke
Copy link
Member Author

@AThousandShips Yes, it's guaranteed to be either 0 or 1 (those are the only two numbers the code returns).

@aaronfranke
Copy link
Member Author

This PR is obsolete, as a different approach was used in master.

@aaronfranke aaronfranke closed this Nov 6, 2023
@aaronfranke aaronfranke removed this from the 4.1 milestone Nov 6, 2023
@aaronfranke aaronfranke deleted the 4.1-importer-version branch November 6, 2023 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants