diff --git a/data/assets/global/localbookmarks.asset b/data/assets/global/localbookmarks.asset index 781614d7da..9f5b6b6433 100644 --- a/data/assets/global/localbookmarks.asset +++ b/data/assets/global/localbookmarks.asset @@ -5,7 +5,10 @@ local nodes = bookmarkHelper.getBookmarks("Local Bookmarks", "${ASSETS}/customiz asset.onInitialize(function() for _, n in ipairs(nodes) do - pcall(openspace.addSceneGraphNode, n) + local success, error = pcall(openspace.addSceneGraphNode, n) + if not success then + openspace.printError(error) + end end end) diff --git a/data/assets/util/generate_bookmarks.asset b/data/assets/util/generate_bookmarks.asset index c1e3940f96..587059c6af 100644 --- a/data/assets/util/generate_bookmarks.asset +++ b/data/assets/util/generate_bookmarks.asset @@ -7,6 +7,8 @@ local getBookmarks = function (guiPath, bookmarkfile) local matchstring = "(.-),(.-),(.-),(.-),(.-),(.-),(.-),(.-),(.-),(.-),(.-)$" local group, name, globe, lat, lon, altitude, x, y, z, scale, linewidth = line:match(matchstring) + local identifier = string.gsub(guiPath .. "-" .. name, " ", "_") + scale = (scale == "" and 75000 or scale) linewidth = (linewidth == "" and 2.0 or tonumber(linewidth)) group = (group == "" and globe or group) @@ -14,7 +16,7 @@ local getBookmarks = function (guiPath, bookmarkfile) local parent = (globe == "" and "Root" or globe) local sgn = { - Identifier = guiPath .. "-" .. name, + Identifier = identifier, Parent = parent, Transform = { Scale = {