Only draw the radius's circle if it's bigger than 0.

This commit is contained in:
Relintai 2024-05-11 19:54:49 +02:00
parent f92fd3374b
commit 4a5e7894ab

View File

@ -3336,5 +3336,7 @@ void TileDataAvoidanceEditor::draw_over_tile(CanvasItem *p_canvas_item, Transfor
color = Color(1.0, 0.5, 0.0, 0.25);
#endif // DEBUG_ENABLED
p_canvas_item->draw_circle(p_transform.xform(Vector2(position)), radius * p_transform.get_scale().x, color);
if (radius > 0.0) {
p_canvas_item->draw_circle(p_transform.xform(Vector2(position)), radius * p_transform.get_scale().x, color);
}
}