From cf64bad63ec29369bada3b2cfed380da403a479a Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Fri, 16 Apr 2021 16:03:22 +0200 Subject: [PATCH] Document `AStar.get_point_path()` not being thread-safe --- doc/classes/AStar.xml | 1 + doc/classes/AStar2D.xml | 1 + 2 files changed, 2 insertions(+) diff --git a/doc/classes/AStar.xml b/doc/classes/AStar.xml index e975b8ed280..533ecbd2794 100644 --- a/doc/classes/AStar.xml +++ b/doc/classes/AStar.xml @@ -289,6 +289,7 @@ Returns an array with the points that are in the path found by AStar between the given points. The array is ordered from the starting point to the ending point of the path. + [b]Note:[/b] This method is not thread-safe. If called from a [Thread], it will return an empty [PackedVector2Array] and will print an error message. diff --git a/doc/classes/AStar2D.xml b/doc/classes/AStar2D.xml index 2a516782096..3efd2f604cf 100644 --- a/doc/classes/AStar2D.xml +++ b/doc/classes/AStar2D.xml @@ -258,6 +258,7 @@ Returns an array with the points that are in the path found by AStar2D between the given points. The array is ordered from the starting point to the ending point of the path. + [b]Note:[/b] This method is not thread-safe. If called from a [Thread], it will return an empty [PackedVector2Array] and will print an error message.