You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-31 18:41:20 +00:00
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.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user