HOTFIX: fix computeNode bad behavior with markDirty
was always doing dusty update
This commit is contained in:
parent
13e8920fe1
commit
8663efccf7
2 changed files with 1 additions and 2 deletions
|
@ -441,7 +441,6 @@ class PlayerClassNode extends ValueCheckComputeNode {
|
|||
compute_func(input_map) {
|
||||
if (input_map.size !== 1) { throw "PlayerClassNode accepts exactly one input (build)"; }
|
||||
const [build] = input_map.values(); // Extract values, pattern match it into size one list and bind to first element
|
||||
|
||||
return wep_to_class.get(build.weapon.statMap.get('type'));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -151,7 +151,7 @@ class ValueCheckComputeNode extends ComputeNode {
|
|||
}
|
||||
let val = this.compute_func(calc_inputs);
|
||||
if (val !== this.value) {
|
||||
this.mark_dirty(2);
|
||||
super.mark_dirty(2);
|
||||
}
|
||||
else {
|
||||
console.log("soft update");
|
||||
|
|
Loading…
Reference in a new issue