Don't clear the selection.
The selection was being cleared intentionally to avoid drawing the core and assemblies with the purple selection color. This prevents choosing relevant operations based on the selection.
We need another way to avoid drawing purple cores.