1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-19 01:29:49 +00:00

Fix undoredo not working if the users draws on a locked/invisible layer

This commit is contained in:
Manolis Papadeas 2021-12-21 01:26:58 +02:00
parent 3ea37be395
commit 6a78351704

View file

@ -148,6 +148,8 @@ func update_line_polylines(start: Vector2, end: Vector2) -> void:
func prepare_undo(action: String) -> void: func prepare_undo(action: String) -> void:
var project: Project = Global.current_project var project: Project = Global.current_project
if !project.layers[project.current_layer].can_layer_get_drawn():
return
_undo_data = _get_undo_data() _undo_data = _get_undo_data()
project.undo_redo.create_action(action) project.undo_redo.create_action(action)