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:
parent
3ea37be395
commit
6a78351704
|
@ -148,6 +148,8 @@ 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…
Reference in a new issue