mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Make get_id_path return empty when first point is disabled
This commit is contained in:
committed by
Rémi Verschelde
parent
019ab8745f
commit
6f094856e7
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user