Merge remote-tracking branch 'remotes/prusa/stable' into merill-merge

This commit is contained in:
supermerill 2021-08-21 03:22:29 +02:00
commit b567fd445b
2 changed files with 2 additions and 1 deletions

View File

@ -1479,7 +1479,7 @@ public:
unsigned char new_value = 0;
if (item_str == "nil") {
if (NULLABLE)
this->values.push_back(nil_value());
new_value = nil_value();
else
throw ConfigurationError("Deserializing nil into a non-nullable object");
} else if (item_str == "1") {

View File

@ -8,6 +8,7 @@
#include <functional>
#include <limits>
#include <cassert>
#include <optional>
namespace Slic3r { namespace opt {