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