From 51359f93ba8554d45d39fe29193eb9fd2befcdf8 Mon Sep 17 00:00:00 2001 From: Alexander Bock Date: Tue, 4 Jun 2024 16:52:10 +0200 Subject: [PATCH] Fix erroneous change in the layer_support --- modules/globebrowsing/scripts/layer_support.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/globebrowsing/scripts/layer_support.lua b/modules/globebrowsing/scripts/layer_support.lua index 8ab40ce6ee..b285c8d773 100644 --- a/modules/globebrowsing/scripts/layer_support.lua +++ b/modules/globebrowsing/scripts/layer_support.lua @@ -224,8 +224,11 @@ openspace.globebrowsing.parseInfoFile = function (file) local name = Name or Identifier local identifier = Identifier local zIndex = ZIndex + if zIndex == "" then + zIndex = nil + end - if identifier == nil then + if identifier == "" then openspace.printError('Error loading file "' .. file .. '": No "Identifier" found') return nil end