Brief:
When trying to apply following operations to a locked layer, Aseprite crashes without any prompt (let’s name this set of tools Toolset1):
- Edit->Adjustments section tools;
- Edit->FX section tools;
- Edit->Replace Color tool;
- Edit->Invert tool.
However, following operations go through locked layer status, and are actually applied (let’s name this set of tools Toolset2):
- Edit->Rotate section;
- Edit->Flip Horizontal and Flip Vertical;
- Edit->Shift section.
- Edit->Text tool.
Finally, “Insert Text” has its own peculiar thingy. It is possible to insert text onto a locked layer, and then successfully delete it if selection was not reset. Resetting selection after inserting text permanently applies it to locked layer.
Reproduction steps:
To reproduce buggy behaviour of Toolset1:
- Create a new document;
- Fill layer with some content (although, this occurs even with an empty layer);
- Lock the layer;
- Use any tool from Toolset1 either from menu or via hotkey on the locked layer;
- Aseprite silently crashes.
To reproduce buggy behaviour of Toolset2:
- Create a new document;
- Fill layer with some content (although, this occurs even with an empty layer);
- Lock the layer;
- Use any tool from Toolset2 either from menu or via hotkey on the locked layer;
- Observe Aseprite successfully applying correspondent tool to a locked layer;
(Text tool only) - (4) Use Text tool on the locked layer;
- (5) Transform with text in it appears, it is still possible to move it, or delete it, applying text with Enter edits locked layer pixels.
Expected behaviour:
If currently selected layer is locked, trying to use any tool on it should result in user warning. I also doubt it was intended to have a set of tools which can break through locked layer state.
Uncaught exception suspected in Toolset1 case. Or someone forgot layer locked state check in both cases, which is more probable.
Aseprite Version v1.2.5-beta1-x64, Steam, Windows
I was so surprised to see such an anomalous interaction