Raycast not detecting animation 1 of a sprite?

I have a sprite object with 2 animations.

When I raycast to an object with an animation of 0, it detects it.
When I raycast to the same object but with an animation of 1, it does not get detected.

Is this a bug, or supposed to happen?