浏览代码

Fix VS.flush->VisualServer.sync

Fixes #1544
FeralBytes 7 年之前
父节点
当前提交
7e14ac0e7d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tutorials/io/files/resource_queue.gd

+ 1 - 1
tutorials/io/files/resource_queue.gd

@@ -78,7 +78,7 @@ func is_ready(path):
 func _wait_for_resource(res, path):
 	_unlock("wait_for_resource")
 	while true:
-		VS.flush()
+		VisualServer.sync()
 		OS.delay_usec(16000) # wait 1 frame
 		_lock("wait_for_resource")
 		if queue.size() == 0 || queue[0] != res: