Files
OpenSpace/scripts/scene_helper.lua
Alexander Bock a1b2695765 Add Lua method to check whether a scenegraphnode is present in the scene
Make use of the function to guard mark_interesting_nodes against a nonexisting scenegraph node
2017-10-24 03:41:02 -07:00

8 lines
195 B
Lua

mark_interesting_nodes = function(nodes)
for _, n in pairs(nodes) do
if openspace.hasSceneGraphNode(n) then
openspace.addTag(n, "GUI.Interesting")
end
end
end