AdamsLair / duality

a 2D Game Development Framework
https://adamslair.github.io/duality
MIT License
1.4k stars 289 forks source link

Can't Delete Objects with no name #773

Closed Shadowblitz16 closed 4 years ago

Shadowblitz16 commented 4 years ago

Summary

I just tried deleting a asset and it didn't do anything

How to reproduce

-Rename a asset to "" in the Assets folder -Try to delete it -See that its still there

Workaround

Attachments

deanljohnson commented 4 years ago

Seems to be only editor side - if you look inside the Data folder with Windows Explorer you will see that the file no longer exists once you delete it.

SirePi commented 4 years ago

Should you be allowed to rename a resource to [nothing] in the first place? That fix is quite easy to apply

ilexp commented 4 years ago

Should you be allowed to rename a resource to [nothing] in the first place? That fix is quite easy to apply

Yep, that sounds like it should be prohibited in the first place.

Shadowblitz16 commented 4 years ago

I agree files should not be re nameable to ""

SirePi commented 4 years ago

Fixed in #780