mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-22 21:09:27 -06:00
Fixed merge conflicts with master
This commit is contained in:
@@ -27,8 +27,8 @@
|
||||
|
||||
#include <openspace/properties/propertyowner.h>
|
||||
#include <openspace/properties/stringproperty.h>
|
||||
#include <openspace/properties/stringlistproperty.h>
|
||||
#include <openspace/properties/optionproperty.h>
|
||||
#include <openspace/properties/list/stringlistproperty.h>
|
||||
#include <openspace/properties/scalar/boolproperty.h>
|
||||
#include <openspace/properties/scalar/intproperty.h>
|
||||
|
||||
|
||||
@@ -78,6 +78,10 @@ namespace {
|
||||
return std::to_string(value.get<double>());
|
||||
}
|
||||
else if (value.is_array()) {
|
||||
if (value.empty()) {
|
||||
return "{}";
|
||||
}
|
||||
|
||||
std::string literal = "{";
|
||||
for (nlohmann::json::iterator it = value.begin(); it != value.end(); ++it) {
|
||||
literal += luaLiteralFromJson(it.value()) += ",";
|
||||
@@ -87,6 +91,10 @@ namespace {
|
||||
return literal;
|
||||
}
|
||||
else if (value.is_object()) {
|
||||
if (value.empty()) {
|
||||
return "{}";
|
||||
}
|
||||
|
||||
std::string literal = "{";
|
||||
for (nlohmann::json::iterator it = value.begin(); it != value.end(); ++it) {
|
||||
literal += it.key() + "=" + luaLiteralFromJson(it.value()) += ",";
|
||||
|
||||
Reference in New Issue
Block a user