mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-07 04:00:37 -06:00
Fixed format error if markNodes is empty
This commit is contained in:
@@ -475,11 +475,11 @@ std::string Profile::convertToScene_markNodes(ProfileFile& pf) {
|
||||
|
||||
if (pf.markNodes().size() > 0) {
|
||||
result += " openspace.markInterestingNodes({";
|
||||
for (std::string m : pf.markNodes()) {
|
||||
result += "\"" + m + "\", ";
|
||||
}
|
||||
result += "})\n";
|
||||
}
|
||||
for (std::string m : pf.markNodes()) {
|
||||
result += "\"" + m + "\", ";
|
||||
}
|
||||
result += "})\n";
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user