Open
Description
What problem does this solve or what need does it fill?
While working on #18058, I realized I could further optimize the code if could stop relationship components from removing the relation ship target component when it's empty. Otherwise removing relationship components may lead to archetype moves which get undone when replace_related
finishes
What solution would you like?
- Rename
RelationshipInsertHookMode
toRelationShipHookMode
- Add
remove_with_relationship_insert_hook_mode
andtake_with_relationship_insert_hook_mode
analogous toinsert_with_relationship_insert_hook_mode
but for single components.
What alternative(s) have you considered?
Just paying for the archetype moves. The performance hit probably isn't going to be too noticeable.