Facepunch / sbox-issues

180 stars 12 forks source link

Referenced non-existent GameResources makes the engine load an empty ghost version of it into memory #7478

Open MrBrax opened 1 week ago

MrBrax commented 1 week ago

Describe the bug

If a non existent gameresource is referenced, it loads an empty ghost version of it in memory even though it doesn't exist on disk.

Image Image

To Reproduce

  1. Reference a gameresource in a component or other gameresource
  2. Rename/delete the referenced resource
  3. Restart editor
  4. The deleted resource will still show up in resourcelibrary.getall as an empty resoruce

Expected behavior

Should not load a ghost version of it

Media/Files

ghost_resource_repro.zip

Additional context

No response