Commit c85d37d
committed
Fix adding outline when
Bevy removes it from the world when a scene is spawned via
`SceneSpawner`:
https://github.com/bevyengine/bevy/blob/f667c282dad2c1419afb5836ded22a3ec263970e/crates/bevy_scene/src/scene_spawner.rs#L560
If `AsyncSceneInheritOutline` is inserted during the scene
spawning (via a required component or via trigger), the
system won't run since it requires `SceneSpawner`.
Tests use `DynamicSceneRoot` instead of using `SceneSpawner`
directly and it works since it uses a bit different mechanism.
I noticed this in my game and tested the fix.SceneSpawner is not in the world1 parent 4a2ddc4 commit c85d37d
2 files changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
| |||
0 commit comments