Why does selecting an object sometimes not make its layer active?
I've noticed that selecting a single object using the selection tools sometimes activates the layer that the object is on (i.e. the layer becomes highlighted in the layers panel, and the little triangle appears in the top right corner). But sometimes it doesn't change the active layer, and I can't work out why.
Does anyone understand Illustrator's logic behind this? I haven't been able to find any discussion on it.
Why is this important? Because I've created some automated actions that perform operations on the selected path and the active layer. If these are out of sync (i.e. one object is selected, but a different layer is highlighed in the layers panel), the actions cause unexpected results, and that's an easy thing to get wrong when Illustrator doesn't appear to be behaving consistently.
