From d4ee7f2895b93d4e99c9b25bb6857db1c0069aef Mon Sep 17 00:00:00 2001 From: Stan Soldatov <118521851+iwatkot@users.noreply.github.com> Date: Sun, 9 Feb 2025 18:03:31 +0100 Subject: [PATCH] Fix saving the i3d file after updating the heightScale --- maps4fs/generator/component/i3d.py | 1 + 1 file changed, 1 insertion(+) diff --git a/maps4fs/generator/component/i3d.py b/maps4fs/generator/component/i3d.py index ba16a46..d1a5e71 100644 --- a/maps4fs/generator/component/i3d.py +++ b/maps4fs/generator/component/i3d.py @@ -85,6 +85,7 @@ def update_height_scale(self, value: int | None = None) -> None: data = {"heightScale": str(value)} self.get_and_update_element(root, path, data) + self.save_tree(tree) def _update_parameters(self) -> None: """Updates the map I3D file with the sun bounding box and displacement layer size."""