Fix error when no curve points node

This commit is contained in:
elecpower
2021-12-31 10:53:11 +01:00
committed by Raphael Coeffic
parent ae8b55ae80
commit 28fbbfa515
@@ -908,7 +908,8 @@ bool convert<ModelData>::decode(const Node& node, ModelData& rhs)
node["expoData"] >> rhs.expoData; node["expoData"] >> rhs.expoData;
node["curves"] >> rhs.curves; node["curves"] >> rhs.curves;
YamlReadCurvePoints(node["points"], rhs.curves); if (node["points"])
YamlReadCurvePoints(node["points"], rhs.curves);
node["logicalSw"] >> rhs.logicalSw; node["logicalSw"] >> rhs.logicalSw;
node["customFn"] >> rhs.customFn; node["customFn"] >> rhs.customFn;