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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user