Skip to content

Commit

Permalink
fix post_load
Browse files Browse the repository at this point in the history
  • Loading branch information
tomara-x committed Jun 18, 2024
1 parent 81cf935 commit fc4e080
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,8 @@ fn post_load(
// update the command line color from resource
let clt = &mut command_line_text.single_mut();
clt.sections[0].style.color = more.command_color.0.into();
// despawn the now empty instance
// despawn the now empty instance (may contain bad state connections when pasting)
commands.entity(scene_id).remove::<SceneInstance>();
commands.entity(scene_id).despawn_recursive();
}
}
Expand Down

0 comments on commit fc4e080

Please sign in to comment.