The same code base still works with 5.11 but does not with 5.12. The problem occurs with the 3D view only.