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

Remove unneeded Global.current_project in SymmetryGuide

This commit is contained in:
Emmanouil Papadeas 2024-10-10 15:28:46 +03:00
parent 9cf3045bf3
commit abcf6f5ec6

View file

@ -21,11 +21,11 @@ func _input(_event: InputEvent) -> void:
super._input(_event) super._input(_event)
if type == Types.HORIZONTAL: if type == Types.HORIZONTAL:
project.y_symmetry_point = points[0].y * 2 - 1 project.y_symmetry_point = points[0].y * 2 - 1
points[0].y = clampf(points[0].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, Global.current_project.size.y) points[1].y = clampf(points[1].y, 0, project.size.y)
elif type == Types.VERTICAL: elif type == Types.VERTICAL:
points[0].x = clampf(points[0].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, Global.current_project.size.x) points[1].x = clampf(points[1].x, 0, project.size.x)
project.x_symmetry_point = points[0].x * 2 - 1 project.x_symmetry_point = points[0].x * 2 - 1