Commit 132fb4d
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 132fb4d
1 file changed
Lines changed: 2 additions & 2 deletions
| 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 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
0 commit comments