mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Make get_id_path return empty when first point is disabled
This commit is contained in:
parent
019ab8745f
commit
6f094856e7
1 changed files with 8 additions and 0 deletions
|
|
@ -481,6 +481,10 @@ Vector<int64_t> AStar3D::get_id_path(int64_t p_from_id, int64_t p_to_id, bool p_
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!a->enabled) {
|
||||||
|
return Vector<int64_t>();
|
||||||
|
}
|
||||||
|
|
||||||
Point *begin_point = a;
|
Point *begin_point = a;
|
||||||
Point *end_point = b;
|
Point *end_point = b;
|
||||||
|
|
||||||
|
|
@ -764,6 +768,10 @@ Vector<int64_t> AStar2D::get_id_path(int64_t p_from_id, int64_t p_to_id, bool p_
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!a->enabled) {
|
||||||
|
return Vector<int64_t>();
|
||||||
|
}
|
||||||
|
|
||||||
AStar3D::Point *begin_point = a;
|
AStar3D::Point *begin_point = a;
|
||||||
AStar3D::Point *end_point = b;
|
AStar3D::Point *end_point = b;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue