Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Adds option to lock/unlock layer #1627
This is starting to look quite nice!
I think there will need to be some better user-feedback though. I noticed GIMP displays a warning in the status bar that reads "The active layer's pixels are locked" when you try to modify a layer. But this is something that can be added later. At least I'm not entirely sure how that would best be done right now.
Another thing, which is also needed for the visibility, is a way to indicate "this layer is locked because a parent is locked", and "this layer is hidden because a parent is hidden". I think we can use the
In terms of functionality, it seems the main thing remaining are the object layer tools. The user should not be able to select objects on locked layers. This check will need to happen for each object, since the tool in general will be enabled and there can be objects from other layers that it will interact with. All the object insertion tools should just check the locked state.
Finally, I think also the "Offset Layers" tool should refuse to work on a locked layer.