Skip to content

Commit 48ab59b

Browse files
committed
fixed crash when closing projects with children lines
1 parent ee742c7 commit 48ab59b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phichain-editor/src/project.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ fn unload_project_system(
175175

176176
// unload lines, notes and events
177177
use phichain_chart::line::Line;
178-
let mut line_query = world.query_filtered::<Entity, With<Line>>();
178+
let mut line_query = world.query_filtered::<Entity, (With<Line>, Without<Parent>)>();
179179
let entities = line_query.iter(world).collect::<Vec<_>>();
180180
for entity in entities {
181181
// notes and events will be despawned as children

0 commit comments

Comments
 (0)