bevy/crates/bevy_ecs/src/reflect
Helix 879893c30a
fix insert_reflect panic caused by clone_value (#10627)
# Objective

- `insert_reflect` relies on `reflect_type_path`, which doesn't gives
the actual type path for object created by `clone_value`, leading to an
unexpected panic. This is a workaround for it.
- Fix #10590 

## Solution

- Tries to get type path from `get_represented_type_info` if get failed
from `reflect_type_path`.

---

## Defect remaining

- `get_represented_type_info` implies a shortage on performance than
using `TypeRegistry`.
2023-11-28 00:17:10 +00:00
..
bundle.rs reflect: TypePath part 2 (#8768) 2023-10-09 19:33:03 +00:00
component.rs Fix typos. (#9922) 2023-09-25 18:35:46 +00:00
entity_commands.rs fix insert_reflect panic caused by clone_value (#10627) 2023-11-28 00:17:10 +00:00
map_entities.rs Use EntityHashMap for EntityMapper (#10415) 2023-11-07 08:23:04 +00:00
mod.rs implement insert and remove reflected entity commands (#8895) 2023-08-28 18:21:20 +00:00
resource.rs Make function pointers of ecs Reflect* public (#8687) 2023-06-19 14:06:58 +00:00