Skip to content

Commit 07bbaf2

Browse files
committed
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.
1 parent 29b3d9e commit 07bbaf2

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

scene/resources/2d/shape_2d.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,6 @@ void Shape2D::_bind_methods() {
111111
}
112112

113113
bool Shape2D::is_collision_outline_enabled() {
114-
#ifdef TOOLS_ENABLED
115-
if (Engine::get_singleton()->is_editor_hint()) {
116-
return true;
117-
}
118-
#endif
119114
return GLOBAL_GET("debug/shapes/collision/draw_2d_outlines");
120115
}
121116

0 commit comments

Comments
 (0)