mirror of
https://github.com/calfmoon/node-factor.git
synced 2026-07-22 12:20:32 +00:00
fix(calc): add assignment of value after calculations
This commit is contained in:
parent
a36f1c9ed0
commit
dbdf7d2a90
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ export default class NodeFactor extends Plugin {
|
|||
if (this.sizeCache.get(node.id) != undefined) {
|
||||
weight = this.sizeCache.get(node.id) as number;
|
||||
} else {
|
||||
calculator.calcNodeWeight(node);
|
||||
weight = calculator.calcNodeWeight(node);
|
||||
this.sizeCache.set(node.id, weight);
|
||||
}
|
||||
node.weight = weight;
|
||||
|
|
|
|||
Loading…
Reference in a new issue