Fix bug with layer support for height maps

This commit is contained in:
Alexander Bock
2017-11-09 10:20:33 -05:00
parent 8866a13ff6
commit ca7053d8f2
@@ -174,7 +174,7 @@ openspace.globebrowsing.parseInfoFile = function (file)
local height = nil
if HeightFile then
local height = {
height = {
Name = Name,
Description = Description or "",
FilePath = dir .. '/' .. HeightFile,
@@ -193,9 +193,11 @@ openspace.globebrowsing.addBlendingLayersFromDirectory = function (dir, node_nam
c, h = openspace.globebrowsing.parseInfoFile(file)
if c then
openspace.printInfo("Adding color layer '" .. c["Name"] .. "'")
openspace.globebrowsing.addLayer(node_name, "ColorLayers", c)
end
if h then
openspace.printInfo("Adding height layer '" .. h["Name"] .. "'")
openspace.globebrowsing.addLayer(node_name, "HeightLayers", h)
end
end