DebouncedEvent { event: Event { kind: Create(File), paths: ["<...>/./test.blend"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None }, time: Instant { tv_sec: 28469, tv_nsec: 182994437 } }
DebouncedEvent { event: Event { kind: Access(Close(Write)), paths: ["<...>/./test.blend"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None }, time: Instant { tv_sec: 28469, tv_nsec: 185258534 } }
DebouncedEvent { event: Event { kind: Remove(Any), paths: ["<...>/./test.blend1"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None }, time: Instant { tv_sec: 28469, tv_nsec: 185991873 } }
DebouncedEvent { event: Event { kind: Modify(Name(Both)), paths: ["<...>/./test.blend", "<...>/./test.blend1"], attr:tracker: Some(10280), attr:flag: None, attr:info: None, attr:source: None }, time: Instant { tv_sec: 28469, tv_nsec: 185991873 } }
System details
Linux host 6.8.0-76060800daily20240311-generic #202403110203~1713206908~22.04~3a62479 SMP PREEMPT_DYNAMIC Mon A x86_64 x86_64 x86_64 GNU/Linuxrustc --version:rustc 1.77.2 (25ef9e3d8 2024-04-09)notify-debouncer-full v0.3.1Cargo tree
Bevy asset system File watcher + asset processor get confused when blender saves a new file version bevyengine/bevy#13053
ext4 (rw,relatime)What you did (as detailed as you can)
Run the example code, then open an existing file
test.blendin blender and overwrite it with a new version.What I ran
What you expected
I expected to read a series of events that would indicate that the
test.blendnow contains the new data,as this is what bevy relies upon to reload the assets.
What happened
strace of blender saving a file
Result
The resulting list of events confuses bevy into thinking there is only the
.blend1file, as the last event returned is the rename. Which is not what actually happens to the filesystem.Thank you for maintaining this ❤️ !