diff --git a/src/Classes/Project.gd b/src/Classes/Project.gd index 4fa9437df434..aa6ae9160a4f 100644 --- a/src/Classes/Project.gd +++ b/src/Classes/Project.gd @@ -61,19 +61,19 @@ func _init(_frames := [], _name := tr("untitled"), _size := Vector2(64, 64)) -> OpenSave.current_save_paths.append("") OpenSave.backup_save_paths.append("") - x_symmetry_point = size.x / 2 - y_symmetry_point = size.y / 2 + x_symmetry_point = size.x + y_symmetry_point = size.y x_symmetry_axis.type = x_symmetry_axis.Types.HORIZONTAL x_symmetry_axis.project = self - x_symmetry_axis.add_point(Vector2(-19999, y_symmetry_point)) - x_symmetry_axis.add_point(Vector2(19999, y_symmetry_point)) + x_symmetry_axis.add_point(Vector2(-19999, y_symmetry_point / 2 + 0.5)) + x_symmetry_axis.add_point(Vector2(19999, y_symmetry_point / 2 + 0.5)) Global.canvas.add_child(x_symmetry_axis) y_symmetry_axis.type = y_symmetry_axis.Types.VERTICAL y_symmetry_axis.project = self - y_symmetry_axis.add_point(Vector2(x_symmetry_point, -19999)) - y_symmetry_axis.add_point(Vector2(x_symmetry_point, 19999)) + y_symmetry_axis.add_point(Vector2(x_symmetry_point / 2 + 0.5, -19999)) + y_symmetry_axis.add_point(Vector2(x_symmetry_point / 2 + 0.5, 19999)) Global.canvas.add_child(y_symmetry_axis) if OS.get_name() == "HTML5": diff --git a/src/UI/Canvas/Rulers/SymmetryGuide.gd b/src/UI/Canvas/Rulers/SymmetryGuide.gd index 0c7c0d9b65bb..7945a75d026e 100644 --- a/src/UI/Canvas/Rulers/SymmetryGuide.gd +++ b/src/UI/Canvas/Rulers/SymmetryGuide.gd @@ -1,7 +1,7 @@ class_name SymmetryGuide extends Guide -var _texture = preload("res://assets/graphics/dotted_line.png") +var _texture: Texture = preload("res://assets/graphics/dotted_line.png") func _ready() -> void: