mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-22 21:09:27 -06:00
Add missing files
This commit is contained in:
11
data/assets/scenehelper.asset
Normal file
11
data/assets/scenehelper.asset
Normal file
@@ -0,0 +1,11 @@
|
||||
local markInterestingNodes = function(nodes)
|
||||
for _, n in pairs(nodes) do
|
||||
if openspace.hasSceneGraphNode(n) then
|
||||
openspace.addTag(n, "GUI.Interesting")
|
||||
else
|
||||
openspace.printWarning("Cannot mark non-existing node '" .. n .. "' as interesting.")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
asset.export("markInterestingNodes", markInterestingNodes);
|
||||
2
tests/AssetLoaderTest/require.asset
Normal file
2
tests/AssetLoaderTest/require.asset
Normal file
@@ -0,0 +1,2 @@
|
||||
local exports, dep = asset.require('export');
|
||||
assert (exports.data == 'foo')
|
||||
Reference in New Issue
Block a user