mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 22:44:42 -04:00
Can't delete and apply effects to locked layers
By effects I mean the selections of the Image menu
This commit is contained in:
parent
e71f76d8ee
commit
550da1e961
2 changed files with 15 additions and 2 deletions
|
@ -292,6 +292,8 @@ func view_menu_id_pressed(id : int) -> void:
|
|||
Global.canvas.update()
|
||||
|
||||
func image_menu_id_pressed(id : int) -> void:
|
||||
if Global.layers[Global.current_layer][2]: # No changes if the layer is locked
|
||||
return
|
||||
match id:
|
||||
0: # Scale Image
|
||||
$ScaleImage.popup_centered()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue