Modification collection started

This commit is contained in:
TreetopFlyer 2021-05-24 22:28:49 -04:00
parent 858cb8cd45
commit d59857ab2b

View File

@ -43,6 +43,23 @@ let Styles = {
`
};
let ModificationPull = (inModifier) =>
{
let getDAG = inModifier => N.Step(inModifier, "ModifyAt")[0];
let getMod = inBranch => N.Step(inBranch, "ModifyAt", false)[0];
let collect = inArray => n => n.Meta.Tweak.forEach((t, i)=>inArray[i] += t;);
let dag = getDAG(inModifier);
let totalScale = [];
let totalAdd = [];
N.ID.Walk++;
N.Walk(collect(totalScale), dag, "ModifyDown", false);
N.Walk(collect(totalScale), dag, "ModifyAt", false);
N.Walk(collect(totalAdd), dag, "ModifyUp", false);
N.Walk(collect(totalAdd), dag, "ModifyOut", false);
};
let PivotForm = props =>
{