mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-29 07:19:28 -05:00
Fix bug with layer support for height maps
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user