In the file, scrubbing through the timeline makes the GP objects to change depth. Changing the viewport shading fixes it. Not so bad.
The problem is when I want to render animation, the problem shows up again. The faulty frames make one character overlap the other. When I render the same frame as single image the render is fine. To clarify, I want to control the depth sorting by spacing the model in 3D, in this case I want only the arm to be on top of the character.
One thing that seems to fix it is setting one character stroke depth to 3D world. Problem being i have like 40 layers and this makes the character a mess.
Z pass seems to have no difference.
Anything that outright solves this is greatly apreciated. But if the characters need to be changed so be it.
Duplicate as I don't have time for merging accounts.
Additional info: Problem I have is on blender 3.2, but switching to 3.0 has made the viewport stable. The grease pencil displays correctly in viewport, but animation render still has this issue. This leads me to belive that it might be a bug.