Change name of function to move 3D browser to a better suited name for lua function

This commit is contained in:
Ylva Selling
2021-06-03 11:27:40 +02:00
parent 6d0efc99df
commit 2df2e45f85
2 changed files with 4 additions and 4 deletions

View File

@@ -171,8 +171,8 @@ namespace openspace {
"input. An input string should be the name of the system host star"
},
{
"create3dSkyBrowser",
&skybrowser::luascriptfunctions::create3dSkyBrowser,
"place3dSkyBrowser",
&skybrowser::luascriptfunctions::place3dSkyBrowser,
{},
"string or list of strings",
"Add one or multiple exoplanet systems to the scene, as specified by the "

View File

@@ -573,8 +573,8 @@ namespace openspace::skybrowser::luascriptfunctions {
return 0;
}
int create3dSkyBrowser(lua_State* L) {
ghoul::lua::checkArgumentsAndThrow(L, 1, "lua::create3dSkyBrowser");
int place3dSkyBrowser(lua_State* L) {
ghoul::lua::checkArgumentsAndThrow(L, 1, "lua::place3dSkyBrowser");
// Image index to place in 3D
const int i = ghoul::lua::value<int>(L, 1);
SkyBrowserModule* module = global::moduleEngine->module<SkyBrowserModule>();