Godot Version
4.5
Question
Why does Godot re-import existing assets each time the project is loaded from source control?
For example: a person downloads the code from project source control (git) and commits a set of changes to a new branch. If I go look at the changes, there will be 100+ new re-imports of assets already imported in the project from prior commits. These are regular assets with the .import
extensions already committed to source. These files are being re-imported every time, haven’t been changed.
Specifically, the changes are to compression and channel remap. This occurs regardless of OS (mac, linux, windows).
Is there a way to prevent these re-imports of existing assets in source control? Its hard to imagine every changeset is supposed to include hundreds of existing assets over and over again.
Godot should follow the .import
file if they exist alongside the asset, it may select a different mode for textures if it detects usage 3D, such as normal maps, but that can be disabled if specified. Godot will re-import into the .godot/imported
folder, but this should be ignored by your version control.
Yeah thats what strange about it. We’re monitoring it very closely this week to see whats going on.
Our .gitignore
follows Godots recommended setup, this issue only involves the .import
files that are supposed to be in version control.
I’ll update this post tomorrow hopefully after seeing the next few merge requests. But the fact remains that these assets have been in version control for a while with no changes. It doesn’t seem normal that new MR/PRs have 100+ re-imported .import
files. So far all of the files have been the .png
type. I can’t think of a single reason these would be re-imported.
EDIT: to add a screenshot of the exact changes for each file. All of them have compression and RGB channel remaps added. Is this perhaps a change in 4.5? We did recently upgrade from 4.4.