Skip to content

Commit

Permalink
Make physics debug respect outline setting inside editor
Browse files Browse the repository at this point in the history
Make physics debug respect outline setting inside editor instead of always returning true no matter the actual setting.
  • Loading branch information
smix8 authored and DanielSnd committed Apr 10, 2024
1 parent 6dd469d commit b85e6b9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions scene/resources/2d/shape_2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down

0 comments on commit b85e6b9

Please sign in to comment.