Browse Source

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.
smix8 1 năm trước cách đây
mục cha
commit
07bbaf267d
1 tập tin đã thay đổi với 0 bổ sung5 xóa
  1. 0 5
      scene/resources/2d/shape_2d.cpp

+ 0 - 5
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");
 }