Fixed output of structs inside arrays without indexes

This is the case for curves inside mixes, which would previously prevent outputting all attributes following the `curve` attribute: `delayUp`, `delayDown`, `speedUp`, `speedDown` and `name`.
This commit is contained in:
Raphael Coeffic
2021-12-29 15:26:25 +01:00
parent e15b34941d
commit 1fa27e89ac
+1 -1
View File
@@ -496,7 +496,7 @@ bool YamlTreeWalker::generate(yaml_writer_func wf, void* opaque)
}
else {
if (isParentArrayElmt() && !toParent())
if (isParentArrayElmt() && (getParent() == node) && !toParent())
return false;
// walk to next non-empty element