1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 09:09:47 +00:00

Fix another bug with Undo/Redo where the app became unresponsive if the user drew outside the canvas

This commit is contained in:
Manolis Papadeas 2021-12-25 19:21:09 +02:00
parent aac30d9c76
commit 93268fef43
3 changed files with 6 additions and 6 deletions

View file

@ -90,8 +90,8 @@ func draw_end(position: Vector2) -> void:
draw_tool(_line_start)
draw_fill_gap(_line_start, _line_end)
_draw_line = false
if _changed or _drawer.color_op.changed:
commit_undo()
commit_undo()
cursor_text = ""
update_random_image()

View file

@ -143,8 +143,8 @@ func draw_end(position: Vector2) -> void:
v.y = y
if Geometry.is_point_in_polygon(v, _draw_points):
draw_tool(v)
if _changed or _drawer.color_op.changed:
commit_undo()
commit_undo()
cursor_text = ""
update_random_image()

View file

@ -265,8 +265,8 @@ func draw_end(position: Vector2) -> void:
draw_tool(_line_start)
draw_fill_gap(_line_start, _line_end)
_draw_line = false
if _changed or _drawer.color_op.changed:
commit_undo()
commit_undo()
cursor_text = ""
update_random_image()