Skip to content

Commit

Permalink
Fix Windows CI segfault
Browse files Browse the repository at this point in the history
Signed-off-by: Rémi Achard <remiachard@gmail.com>
  • Loading branch information
remia committed Sep 9, 2024
1 parent 778d408 commit d4bb175
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/OpenColorIO/OCIOYaml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1351,7 +1351,10 @@ inline void load(const YAML::Node& node, FixedFunctionTransformRcPtr& t)
{
std::vector<double> params;
load(iter->second, params);
t->setParams(&params[0], params.size());
if (!params.empty())
{
t->setParams(&params[0], params.size());
}
}
else if(key == "style")
{
Expand Down

0 comments on commit d4bb175

Please sign in to comment.