From 07bbaf267dfd3c4e1d13fa85dcc202fa19583d99 Mon Sep 17 00:00:00 2001 From: smix8 <52464204+smix8@users.noreply.github.com> Date: Mon, 1 Apr 2024 19:52:57 +0200 Subject: [PATCH] Make physics debug respect outline setting inside editor Make physics debug respect outline setting inside editor instead of always returning true no matter the actual setting. --- scene/resources/2d/shape_2d.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/scene/resources/2d/shape_2d.cpp b/scene/resources/2d/shape_2d.cpp index 2de9b70f53f..e94280fe3d7 100644 --- a/scene/resources/2d/shape_2d.cpp +++ b/scene/resources/2d/shape_2d.cpp @@ -111,11 +111,6 @@ void Shape2D::_bind_methods() { } bool Shape2D::is_collision_outline_enabled() { -#ifdef TOOLS_ENABLED - if (Engine::get_singleton()->is_editor_hint()) { - return true; - } -#endif return GLOBAL_GET("debug/shapes/collision/draw_2d_outlines"); }