From 30b7121c689eb457ea9cb5f37bce8619808deb03 Mon Sep 17 00:00:00 2001 From: evolvedexperiment <55178666+evolvedexperiment@users.noreply.github.com> Date: Mon, 18 Nov 2019 14:55:00 +0200 Subject: [PATCH] Fix for exit customization (#369) --- modules/ui/heightmap-editor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/ui/heightmap-editor.js b/modules/ui/heightmap-editor.js index b744a972..d645cd3f 100644 --- a/modules/ui/heightmap-editor.js +++ b/modules/ui/heightmap-editor.js @@ -125,7 +125,8 @@ function editHeightmap() { customization = 0; customizationMenu.style.display = "none"; - toolsContent.style.display = "block"; + if (options.querySelector(".tab > button.active").id === "toolsTab") + toolsContent.style.display = "block"; layersPreset.disabled = false; exitCustomization.style.display = "none"; // hide finalize button restoreDefaultEvents();