mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-22 12:59:07 -06:00
add openspace lua table to lua transforms
This commit is contained in:
@@ -26,6 +26,8 @@
|
||||
|
||||
#include <openspace/documentation/documentation.h>
|
||||
#include <openspace/documentation/verifier.h>
|
||||
#include <openspace/engine/globals.h>
|
||||
#include <openspace/scripting/scriptengine.h>
|
||||
#include <openspace/util/updatestructures.h>
|
||||
#include <ghoul/filesystem/file.h>
|
||||
#include <ghoul/filesystem/filesystem.h>
|
||||
@@ -74,6 +76,7 @@ LuaRotation::LuaRotation(const ghoul::Dictionary& dictionary)
|
||||
});
|
||||
|
||||
addProperty(_luaScriptFile);
|
||||
global::scriptEngine->initializeLuaState(_state);
|
||||
|
||||
_luaScriptFile = p.script.string();
|
||||
}
|
||||
|
||||
@@ -26,6 +26,8 @@
|
||||
|
||||
#include <openspace/documentation/documentation.h>
|
||||
#include <openspace/documentation/verifier.h>
|
||||
#include <openspace/engine/globals.h>
|
||||
#include <openspace/scripting/scriptengine.h>
|
||||
#include <openspace/util/updatestructures.h>
|
||||
#include <ghoul/filesystem/file.h>
|
||||
#include <ghoul/filesystem/filesystem.h>
|
||||
@@ -72,6 +74,7 @@ LuaScale::LuaScale(const ghoul::Dictionary& dictionary)
|
||||
_fileHandle->setCallback([this]() { requireUpdate(); });
|
||||
});
|
||||
addProperty(_luaScriptFile);
|
||||
global::scriptEngine->initializeLuaState(_state);
|
||||
|
||||
_luaScriptFile = p.script.string();
|
||||
}
|
||||
|
||||
@@ -26,6 +26,8 @@
|
||||
|
||||
#include <openspace/documentation/documentation.h>
|
||||
#include <openspace/documentation/verifier.h>
|
||||
#include <openspace/engine/globals.h>
|
||||
#include <openspace/scripting/scriptengine.h>
|
||||
#include <openspace/util/updatestructures.h>
|
||||
#include <ghoul/filesystem/file.h>
|
||||
#include <ghoul/filesystem/filesystem.h>
|
||||
@@ -76,6 +78,7 @@ LuaTranslation::LuaTranslation(const ghoul::Dictionary& dictionary)
|
||||
});
|
||||
});
|
||||
addProperty(_luaScriptFile);
|
||||
global::scriptEngine->initializeLuaState(_state);
|
||||
|
||||
_luaScriptFile = p.script.string();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user