Fixed hang when TweenChannel.sync is called too late.
This commit is contained in:
parent
eb720b6188
commit
14e4ea41fb
|
@ -70,6 +70,7 @@ func create_tween(target: Variant) -> Tween:
|
|||
##
|
||||
## The given tween must have been created with self.create_tween.
|
||||
func sync(what: Tween) -> void:
|
||||
if what and what.is_valid():
|
||||
var last_terminated: Tween = null
|
||||
while last_terminated != what:
|
||||
last_terminated = await terminated
|
||||
|
|
Loading…
Reference in New Issue