mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-04 18:11:01 -05:00
only allow saving setPropertyValue to profiles
This commit is contained in:
@@ -399,6 +399,12 @@ int saveLastChangeToProfile(lua_State* L) {
|
||||
lastLine=line;
|
||||
}
|
||||
|
||||
if (actualLastLine.find("openspace.setPropertyValue") == std::string::npos) {
|
||||
ghoul::lua::push(L, "Only property value changes can be saved.");
|
||||
printInternal(ghoul::logging::LogLevel::Error, L);
|
||||
return -1;
|
||||
}
|
||||
|
||||
std::string dataString = "${ASSETS}/";
|
||||
std::string assetPath = absPath(fmt::format("{}{}.scene", dataString, asset));
|
||||
std::string tempAssetPath = absPath(fmt::format("{}{}.scene.tmp", dataString, asset));
|
||||
|
||||
Reference in New Issue
Block a user