I opened a project created with 5.1 with 5.1.1. By pressing G (game view) all the foliage becomes hidden . I cleaned the registry, restarted the PC and deleted the DerivedDataCache, Intermediate, Platforms, Saved folders from the project. The problem no longer occurred.