Browse Source

fix: Tween is briefly not in the scene tree when we call refresh()

Not sure why ; happens on resume.
master
Dominique Merle 2 years ago
parent
commit
aa5bfab61b
  1. 2
      addons/majority_judgment/nodes/MajorityJudgmentMeritProfileControl.gd

2
addons/majority_judgment/nodes/MajorityJudgmentMeritProfileControl.gd

@ -51,6 +51,8 @@ func compute_height():
func refresh(merit_profile:MajorityJudgmentCandidateMeritProfile):
if not $Tween.is_inside_tree():
yield($Tween, "tree_entered")
$Tween.remove_all()
var total_amount_of_judgments : int = merit_profile.count_judgments()

Loading…
Cancel
Save