The problem with the lighting of the AnimatedSprite3D

Godot Version



I have Animated Sprite 3D with the Shaded option enabled. I want to rotate this object by changing the scale.x from 1 to -1. However, if I change the rotation in this way, the object ceases to be illuminated from the front, and instead the light falling on its face is transmitted to its back side. I tried to replace this rotation method by changing flip_h, however, this method is not suitable for me for some reasons. How do I fix this?