From abcf6f5ec61cafe9dee41aa7ddd06e311017ef10 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Thu, 10 Oct 2024 15:28:46 +0300 Subject: [PATCH] Remove unneeded Global.current_project in SymmetryGuide --- src/UI/Canvas/Rulers/SymmetryGuide.gd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/UI/Canvas/Rulers/SymmetryGuide.gd b/src/UI/Canvas/Rulers/SymmetryGuide.gd index f4edb5155..39e9c374b 100644 --- a/src/UI/Canvas/Rulers/SymmetryGuide.gd +++ b/src/UI/Canvas/Rulers/SymmetryGuide.gd @@ -21,11 +21,11 @@ func _input(_event: InputEvent) -> void: super._input(_event) if type == Types.HORIZONTAL: project.y_symmetry_point = points[0].y * 2 - 1 - points[0].y = clampf(points[0].y, 0, Global.current_project.size.y) - points[1].y = clampf(points[1].y, 0, Global.current_project.size.y) + points[0].y = clampf(points[0].y, 0, project.size.y) + points[1].y = clampf(points[1].y, 0, project.size.y) elif type == Types.VERTICAL: - points[0].x = clampf(points[0].x, 0, Global.current_project.size.x) - points[1].x = clampf(points[1].x, 0, Global.current_project.size.x) + points[0].x = clampf(points[0].x, 0, project.size.x) + points[1].x = clampf(points[1].x, 0, project.size.x) project.x_symmetry_point = points[0].x * 2 - 1