From 40c0fb33fb82e85eefdcfb9c60c786494c04886d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B7=E4=B8=AA=E5=90=8D=E5=AD=97=E5=A5=BD=E9=9A=BE?= =?UTF-8?q?=E7=9A=84=E5=96=B5?= <25520958+MisakaAldrich@users.noreply.github.com> Date: Sat, 26 Jul 2025 17:34:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=9D=E7=95=99=E7=9A=84=E5=9D=90?= =?UTF-8?q?=E6=A0=87=E7=B2=BE=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/validate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/validate.py b/build/validate.py index ed84c958..da82c090 100755 --- a/build/validate.py +++ b/build/validate.py @@ -205,7 +205,7 @@ def process_coordinates(positions): for axis in ['x', 'y']: if axis in pos and isinstance(pos[axis], (int, float)): original = pos[axis] - pos[axis] = round(float(pos[axis]), 2) + pos[axis] = round(float(pos[axis]), 4) if original != pos[axis]: coord_changed = True return coord_changed @@ -591,7 +591,7 @@ def validate_file(file_path, auto_fix=False): # 处理坐标 coord_changed = process_coordinates(data["positions"]) if coord_changed: - all_corrections.append("坐标值自动保留两位小数") + all_corrections.append("坐标值自动保留四位小数") # 检查 BGI 版本兼容性 bgi_version, corrections = check_bgi_version_compatibility(info["bgi_version"], auto_fix)