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

don't ignore some EventKind::Modify #9767

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

mockersf
Copy link
Member

Objective

  • File modification don't trigger hot reload on macOS

Solution

  • EventKind::Modify can have several reasons
  • ModifyKind::Any was used to react to change events, and later ModifyKind::Name for file name change. It left other variants of change ignored (Data, Metadata, Other)
  • move the modification handling after the rename so that it handles all other variants

@mockersf mockersf added the A-Assets Load files from disk to use for things like images, models, and sounds label Sep 11, 2023
@alice-i-cecile alice-i-cecile added the C-Bug An unexpected or incorrect behavior label Sep 11, 2023
@cart cart added this pull request to the merge queue Sep 13, 2023
Merged via the queue into bevyengine:main with commit 72b8f47 Sep 13, 2023
24 checks passed
rdrpenguin04 pushed a commit to rdrpenguin04/bevy that referenced this pull request Jan 9, 2024
# Objective

- File modification don't trigger hot reload on macOS 

## Solution

-
[`EventKind::Modify`](https://docs.rs/notify/latest/notify/event/enum.EventKind.html#variant.Modify)
can have several reasons
-
[`ModifyKind::Any`](https://docs.rs/notify/latest/notify/event/enum.ModifyKind.html)
was used to react to change events, and later ModifyKind::Name for file
name change. It left other variants of change ignored (`Data`,
`Metadata`, `Other`)
- move the modification handling after the rename so that it handles all
other variants
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Assets Load files from disk to use for things like images, models, and sounds C-Bug An unexpected or incorrect behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants