Can't delete and apply effects to locked layers

By effects I mean the selections of the Image menu
This commit is contained in:
OverloadedOrama 2020-03-10 01:42:50 +02:00
parent e71f76d8ee
commit 550da1e961
2 changed files with 15 additions and 2 deletions

View file

@ -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()