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

Fix warning when deleting empty folders #23

Merged
merged 3 commits into from
Apr 9, 2024

Conversation

rhys-vdw
Copy link
Contributor

@rhys-vdw rhys-vdw commented Oct 15, 2023

Closes #21
Closes #16

This was caused by a bug in Unity where an incorrect path was being passed to OnWillCreateAsset. For folders the path for the meta file was given, instead of the actual folder path. Because the meta file is not an asset, its guid would be zero. When deleting the folder, the correct path is given.

I also did a small tidy on AssetProcessor.

Note that I tested this change with @ogxd's refactor branch, and it has no conflicts. (See #22)

- Move private field up
- Correct formatting for private field
- Prefer to use readonly
Editor/StringUtility.cs Outdated Show resolved Hide resolved
@ogxd
Copy link
Owner

ogxd commented Apr 7, 2024

Sorry for the (huge) delay, appart from indentation of StringUtility it looks good to me

Co-authored-by: Olivier Giniaux <[email protected]>
@rhys-vdw
Copy link
Contributor Author

rhys-vdw commented Apr 8, 2024

Sorry for the (huge) delay, appart from indentation of StringUtility it looks good to me

I just merged your suggestion without testing.

btw I've been maintaining my own fork due to your inactivity (so all this stuff has been well tested by our team). Happy to move back to yours if you want to add me as a collaborator, also fine with maintaining my own fork. Pretty sure they'll be at parity after this PR is merged. There is still more work to do here, the most egregious outstanding issue is #20. I'm not actively working on this rn, but vaguely plan to come back to it at some stage.

@ogxd ogxd merged commit da8a264 into ogxd:master Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Warning logged when deleting folder Large number of warnings being raised by RemoveAssetFromDatabase
2 participants