From 8f701dfee0dcbde9c58bd946d2ef942323a3564b Mon Sep 17 00:00:00 2001 From: Manolis Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Mon, 3 Jan 2022 14:05:41 +0200 Subject: [PATCH] Fix #626 --- src/Classes/Project.gd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Classes/Project.gd b/src/Classes/Project.gd index 792213613..912ecc255 100644 --- a/src/Classes/Project.gd +++ b/src/Classes/Project.gd @@ -425,10 +425,10 @@ func deserialize(dict: Dictionary) -> void: if dict.has("symmetry_points"): x_symmetry_point = dict.symmetry_points[0] y_symmetry_point = dict.symmetry_points[1] - for point in x_symmetry_axis.points: - point.y = floor(y_symmetry_point / 2 + 1) - for point in y_symmetry_axis.points: - point.x = floor(x_symmetry_point / 2 + 1) + for point in x_symmetry_axis.points.size(): + x_symmetry_axis.points[point].y = floor(y_symmetry_point / 2 + 1) + for point in y_symmetry_axis.points.size(): + y_symmetry_axis.points[point].x = floor(x_symmetry_point / 2 + 1) if dict.has("export_directory_path"): directory_path = dict.export_directory_path if dict.has("export_file_name"):