This PR makes it so that locked materials as well as hidden materials will not have their edit points and edit lines visible. Note: Previously in grease pencil, strokes with hidden materials would still display the edit lines. This behavior is now fixed in GPv3. Pull Request: https://projects.blender.org/blender/blender/pulls/115740