Merge pull request #90113 from smix8/draw_2d_outlines
Make physics debug respect shape outline setting inside editor
This commit is contained in:
commit
ffa650f1d8
1 changed files with 0 additions and 5 deletions
|
@ -111,11 +111,6 @@ void Shape2D::_bind_methods() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Shape2D::is_collision_outline_enabled() {
|
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");
|
return GLOBAL_GET("debug/shapes/collision/draw_2d_outlines");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue