From ce40a8e2ec1b713026eab08b681cea5acc756195 Mon Sep 17 00:00:00 2001 From: Evolvedexperiment Date: Mon, 18 Nov 2019 12:16:14 +0000 Subject: [PATCH] Fix for exit customization --- 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();