Hello,
I reported a bug with 2019.3 beta, but it is also happening in previous versions. Here is the full report, if there is something unclear, i can clarify.
Edit: Case number: 1195496
###############################
###############################
- What happened
Removing components on nested prefabs and then “applying all” overrides causes removed components to reappear again.
- How we can reproduce it using the example you attached
Create two prefabs (e.g. Cubes with box colliders) : Parent and Child. Now nest at least 3 instances of Child under Parent. Put Parent prefab to the Scene. Pick last two (maybe works with arbitrary two) nested Child prefab instances and remove their Box Collider component. Now on Parent, press Overrides → Apply All. On one of the child prefab instances where we removed the box collider, the box collider reappeares again. Also when now undoing operations with ctrl+z I get this warning:
"Component of type BoxCollider was added to Child (1) using GameObject.AddComponent() and had become dangling during an undo operation.
Use Undo.AddComponent to correctly add a component which can be handle by the undo system"
################################
################################
I forgot to mention that:
When applying overrides one by one, this does not happen.