mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-07 20:21:24 -06:00
Cleaning up iss on removal (#1318)
This commit is contained in:
@@ -279,7 +279,6 @@ local initializeAndAddNodes = function()
|
||||
}
|
||||
}
|
||||
|
||||
table.insert(nodes, issTrail)
|
||||
return { iss, parentNode, issTrail }
|
||||
end
|
||||
|
||||
@@ -289,8 +288,16 @@ asset.onInitialize(function ()
|
||||
openspace.addSceneGraphNode(node)
|
||||
end
|
||||
openspace.setPropertyValueSingle("Scene.ISSparentNode.Rotation.yAxis-InvertObject", true)
|
||||
|
||||
end)
|
||||
|
||||
asset.onDeinitialize(function ()
|
||||
for i=1, #nodes do
|
||||
openspace.removeSceneGraphNode(nodes[#nodes + 1 - i].Identifier)
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
|
||||
asset.meta = {
|
||||
Name = "ISS",
|
||||
|
||||
Reference in New Issue
Block a user