mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-23 20:50:59 -05:00
Issue/518 (#529)
* Adding ScreenSpaceSpout object to display spout textures in screen space * Enable the clearing of option properties * Fix crash in ScreenSpaceImageLocal specification * Split RenderablePlane into RenderablePlaneImageLocal and RenderablePlaneImageOnline * Add RenderablePlane Spout * Rename Texture parameter in ScreenSpaceImageOnline into URL Closes #518
This commit is contained in:
@@ -221,7 +221,7 @@ static void RenderDrawLists(ImDrawData* drawData) {
|
||||
|
||||
|
||||
void addScreenSpaceRenderableLocal(std::string texturePath) {
|
||||
if (!FileSys.fileExists(texturePath)) {
|
||||
if (!FileSys.fileExists(absPath(texturePath))) {
|
||||
LWARNING("Could not find image '" << texturePath << "'");
|
||||
return;
|
||||
}
|
||||
@@ -239,7 +239,7 @@ void addScreenSpaceRenderableLocal(std::string texturePath) {
|
||||
|
||||
void addScreenSpaceRenderableOnline(std::string texturePath) {
|
||||
const std::string luaTable =
|
||||
"{Type = 'ScreenSpaceImageOnline', TexturePath = '" + texturePath + "' }";
|
||||
"{Type = 'ScreenSpaceImageOnline', URL = '" + texturePath + "' }";
|
||||
const std::string script = "openspace.addScreenSpaceRenderable(" +
|
||||
luaTable + ");";
|
||||
OsEng.scriptEngine().queueScript(
|
||||
|
||||
Reference in New Issue
Block a user