godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
89.56k stars 20.55k forks source link

Dependency Manager doesn't validate types #31156

Open KoBeWi opened 5 years ago

KoBeWi commented 5 years ago

Godot version: 3.1.1

Issue description: When you edit scene's dependencies, you can put anything for anything and it won't complain.

Steps to reproduce:

  1. Create a Sprite node with a texture
  2. Close the scene
  3. Either remove the texture and open scene or edit dependencies manually
  4. Select another file for the texture, like, sound file lol
  5. Confirm the changes
  6. Godot doesn't see any problem, not even a warning appears

You can open the scene normally, but saving it will remove the wrong dependencies. You can however edit the dependencies again and assign correct resources.

LinuxUserGD commented 5 years ago

I think in some way it should be expected, e. g. if you converted all your .png images in .jpg to save space.

KoBeWi commented 5 years ago

^ Both of them are recognized as a Texture. But you shouldn't be able to assign an AudioStream or a DynamicFont to a Texture.

KoBeWi commented 4 years ago

Still valid in 377c3bb