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

Moving files in Godots "File System" view causes reimports and breaks references #29607

Closed
MartinHaeusler opened this issue Jun 8, 2019 · 4 comments

Comments

@MartinHaeusler
Copy link

MartinHaeusler commented Jun 8, 2019

Godot version:
v3.1.1, Mono Edition

OS/device including version:
Windows 10

Reproduction Steps:

  • I have a 3D model (an *.obj file) which I imported into Godot and placed in a 3D scene.
  • I created a standard spatial material for the mesh and assigned it to the mesh.
  • In Godots "file system" view created a subfolder as a sibling to the *.obj file and the material.
  • Still in "file system", I click & drag the *.obj file and the material into the subfolder

What happened:

  • Godot will now (for whatever reason) reimport the files as if they were new
  • The mesh is still present in the scene, but the assignment of the material is gone.

What should have happened instead:

  • Godot should have realized that moving a file does not require a reimport, as only the file location has changed, not its content. Furthermore, the move happened within the Godot editor, which is another reason why Godot should not have performed a reimport.
  • Godot should have recognized that moving an asset file managed by Godot requires updating all references to it in the project.

This is a major pain, especially for larger projects this is a showstopper.

@LinuxUserGD
Copy link
Contributor

LinuxUserGD commented Jun 8, 2019

Can you really assign a material to the *.obj file?
I think you can only assign a material to a .tscn because assigning a material doesn't override the *.obj file, it's read-only.

@MartinHaeusler
Copy link
Author

Oh yeah, sorry, that's what I meant. I added the *.obj file to the project, dragged the contained mesh into the scene, then applied the material to the mesh in the scene. I don't know if using an *.obj file specifically has any influence on this at all, it's just what I did.

@KoBeWi
Copy link
Member

KoBeWi commented Aug 5, 2020

The re-import on move still happens in 3.2.3 rc3, not sure about breaking references.
@MartinHaeusler Did anything change? (include some minimal reproduction project if the issue is still valid)

@KoBeWi
Copy link
Member

KoBeWi commented Apr 23, 2024

Most of the file moving issues were resolved in Godot 4, so this is likely no longer relevant (please comment if it's otherwise, with a reproduction project).
Rescan after move is tracked by #50576

@KoBeWi KoBeWi closed this as completed Apr 23, 2024
@akien-mga akien-mga added this to the 4.0 milestone Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants