mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-26 14:58:51 -06:00
Enable networked specifications for ScreenSpaceImages
This commit is contained in:
@@ -210,12 +210,9 @@ void addScreenSpaceRenderable(std::string texturePath) {
|
||||
return;
|
||||
}
|
||||
|
||||
texturePath = absPath(texturePath);
|
||||
texturePath = FileSys.convertPathSeparator(texturePath, '/');
|
||||
|
||||
std::string luaTable =
|
||||
"{Type = 'ScreenSpaceImage', TexturePath = '" + texturePath + "' }";
|
||||
std::string script = "openspace.registerScreenSpaceRenderable(" + luaTable + ");";
|
||||
const std::string luaTable =
|
||||
"{Type = 'ScreenSpaceImage', TexturePath = openspace.absPath('" + texturePath + "') }";
|
||||
const std::string script = "openspace.registerScreenSpaceRenderable(" + luaTable + ");";
|
||||
OsEng.scriptEngine().queueScript(script, openspace::scripting::ScriptEngine::RemoteScripting::Yes);
|
||||
}
|
||||
} // namespace
|
||||
|
||||
@@ -200,6 +200,7 @@ int absolutePath(lua_State* L) {
|
||||
|
||||
std::string path = luaL_checkstring(L, -1);
|
||||
path = absPath(path);
|
||||
path = FileSys.convertPathSeparator(path, '/');
|
||||
lua_pushstring(L, path.c_str());
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user