1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-02-20 12:33:14 +00:00

Make cut not work on locked/invisible layers

This commit is contained in:
Manolis Papadeas 2022-03-31 17:30:25 +03:00
parent 11b6af07f1
commit d01d0a287a

View file

@ -649,6 +649,9 @@ func _get_selected_draw_images() -> Array: # Array of Images
func cut() -> void:
var project: Project = Global.current_project
if !project.layers[project.current_layer].can_layer_get_drawn():
return
copy()
delete()