Fix error when no curve points node
This commit is contained in:
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["curves"] >> rhs.curves;
|
||||
YamlReadCurvePoints(node["points"], rhs.curves);
|
||||
if (node["points"])
|
||||
YamlReadCurvePoints(node["points"], rhs.curves);
|
||||
|
||||
node["logicalSw"] >> rhs.logicalSw;
|
||||
node["customFn"] >> rhs.customFn;
|
||||
|
||||
Reference in New Issue
Block a user