[instancer] Reuse var
This commit is contained in:
parent
407fd13554
commit
3db83dd739
@ -246,9 +246,8 @@ def changeTupleVariationAxisLimit(var, axisTag, axisLimit):
|
|||||||
solutions = solver.rebaseTent(tent, axisLimit)
|
solutions = solver.rebaseTent(tent, axisLimit)
|
||||||
|
|
||||||
out = []
|
out = []
|
||||||
# TODO Reuse original var
|
|
||||||
for scalar,tent in solutions:
|
for scalar,tent in solutions:
|
||||||
newVar = TupleVariation(var.axes, var.coordinates)
|
newVar = TupleVariation(var.axes, var.coordinates) if len(solutions) > 1 else var
|
||||||
if tent[1] == 0:
|
if tent[1] == 0:
|
||||||
newVar.axes.pop(axisTag)
|
newVar.axes.pop(axisTag)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user