Skip to content

Commit

Permalink
Fix loading of SpoutFlatProjection in JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderbock committed Mar 11, 2023
1 parent 5f1b683 commit 2f82990
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/readconfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1858,10 +1858,14 @@ void from_json(const nlohmann::json& j, SpoutFlatProjection& p) {
p.height = it->get<int>();
}

if (auto it = j.find("mappingSpoutName"); it != j.end()) {
if (auto it = j.find("mappingspoutname"); it != j.end()) {
p.mappingSpoutName = it->get<std::string>();
}

if (auto it = j.find("drawmain"); it != j.end()) {
p.drawMain = it->get<bool>();
}

if (auto it = j.find("background"); it != j.end()) {
sgct::vec4 background;
it->at("r").get_to(background.x);
Expand Down

0 comments on commit 2f82990

Please sign in to comment.