mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Implemented lock function
Now a layer can be locked and unlocked and it's possible to edit a layer only if the layer is not locked.
This commit is contained in:
@ -20,6 +20,10 @@ function copySelection() {
|
||||
}
|
||||
|
||||
function pasteSelection() {
|
||||
// Can't paste if the layer is locked
|
||||
if (currentLayer.isLocked) {
|
||||
return;
|
||||
}
|
||||
endSelection();
|
||||
|
||||
isPasting = true;
|
||||
|
Reference in New Issue
Block a user