mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-11-22 00:48:09 +01:00
Only draw the radius's circle if it's bigger than 0.
This commit is contained in:
parent
f92fd3374b
commit
4a5e7894ab
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user