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:
parent
11b6af07f1
commit
d01d0a287a
1 changed files with 3 additions and 0 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue