mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-20 12:33:14 +00:00
Fix undo error when the user draws on a locked/invisible layer
This commit is contained in:
parent
bbc56e253e
commit
95ae81eef1
1 changed files with 0 additions and 2 deletions
|
@ -148,8 +148,6 @@ func update_line_polylines(start: Vector2, end: Vector2) -> void:
|
|||
|
||||
func prepare_undo(action: String) -> void:
|
||||
var project: Project = Global.current_project
|
||||
if !project.layers[project.current_layer].can_layer_get_drawn():
|
||||
return
|
||||
_undo_data = _get_undo_data()
|
||||
project.undo_redo.create_action(action)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue