1
0
Fork 0
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:
Manolis Papadeas 2021-12-29 21:48:33 +02:00
parent bbc56e253e
commit 95ae81eef1

View file

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