From ad413a613c0075c9b812beb9e4bbe35e3e4fe834 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 (cherry picked from commit cf64bad63ec29369bada3b2cfed380da403a479a) --- 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 01555612f8d..d5fd61c08e6 100644 --- a/doc/classes/AStar.xml +++ b/doc/classes/AStar.xml @@ -224,6 +224,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 [PoolVector3Array] and will print an error message. diff --git a/doc/classes/AStar2D.xml b/doc/classes/AStar2D.xml index b05524b4ead..262568e7115 100644 --- a/doc/classes/AStar2D.xml +++ b/doc/classes/AStar2D.xml @@ -206,6 +206,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 [PoolVector2Array] and will print an error message.