Add working way of instantiating ScreenSpaceBrowser from LuaScript

This commit is contained in:
Ylva Selling
2021-02-23 14:40:48 +01:00
parent 7d58cf40c2
commit 7c83c4e3da
5 changed files with 12 additions and 9 deletions

View File

@@ -23,6 +23,8 @@
****************************************************************************************/
#include <modules/skybrowser/skybrowsermodule.h>
//#include <modules/webbrowser/webbrowsermodule.h>
//#include <modules/webbrowser/include/screenspacebrowser.h>
#include <openspace/engine/globals.h>
@@ -87,10 +89,11 @@ scripting::LuaLibrary SkybrowserModule::luaLibrary() const {
void SkybrowserModule::internalInitialize(const ghoul::Dictionary& dict) {
const Parameters p = codegen::bake<Parameters>(dict);
_testProperty = p.testString.value_or(_testProperty);
/*
auto fBrowser = FactoryManager::ref().factory<ScreenSpaceBrowser>();
ghoul_assert(fBrowser, "No browser factory existed :'-(");
fBrowser->registerClass<ScreenSpaceBrowser>("ScreenSpaceBrowser");
*/
}
/*
std::vector<documentation::Documentation> SkybrowserModule::documentations() const {