Skip to content

Commit 368f410

Browse files
committed
Suppress the error for #866
A check to suppress the error
1 parent 19c6a14 commit 368f410

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

addons/dialogic/Nodes/Portrait.gd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ func animate(animation_name = '[No Animation]', time = 1, loop = 1, delete = fal
166166
$AnimationTween.play($TextureRect, animation_name, time)
167167

168168
if delete:
169-
$AnimationTween.connect("tween_all_completed", self, "queue_free")
169+
if !$AnimationTween.is_connected("tween_all_completed", self, "queue_free"):
170+
$AnimationTween.connect("tween_all_completed", self, "queue_free")
170171

171172

172173
func focus():

0 commit comments

Comments
 (0)