Fixed cut tool bug, when start position was Vector2(0, 0) when checking variable with "not var" instead of "var == null"

This commit is contained in:
cobrapitz 2020-11-23 06:32:04 +01:00
parent 6fbe2aea52
commit 963fdf493e
2 changed files with 417 additions and 400 deletions

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,7 @@ func can_commit() -> bool:
func do_action(canvas, data: Array):
.do_action(canvas, data)
if not mouse_start_pos:
if mouse_start_pos == null:
mouse_start_pos = data[0]
mouse_end_pos = data[0]