Allow a node with forceVariation to be promoted when it's first child

This commit is contained in:
Stephen Brandwood 2019-08-07 20:19:52 +01:00
parent fbe2ed1ca2
commit 05d66d4935

View file

@ -168,6 +168,9 @@ export function build(root: Tree.Node): TreeWrapper {
ops.removeChild(parent, node.id);
parent.children.unshift(node);
if (!toMainline) break;
} else if (node.forceVariation) {
node.forceVariation = false;
if (!toMainline) break;
}
}
}