1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-17 14:11:06 +00:00

Added option in project settings to draw Shape2D outlines

Disabling collision outlines can be useful for performance when the game
is running and many collision shapes are displayed.
This commit is contained in:
PouleyKetchoupp
2021-02-25 07:45:40 -07:00
parent aa7c298788
commit d94cd42ccd
8 changed files with 54 additions and 25 deletions

View File

@@ -2039,6 +2039,8 @@ SceneTree::SceneTree() {
collision_debug_contacts = GLOBAL_DEF("debug/shapes/collision/max_contacts_displayed", 10000);
ProjectSettings::get_singleton()->set_custom_property_info("debug/shapes/collision/max_contacts_displayed", PropertyInfo(Variant::INT, "debug/shapes/collision/max_contacts_displayed", PROPERTY_HINT_RANGE, "0,20000,1")); // No negative
GLOBAL_DEF("debug/shapes/collision/draw_2d_outlines", true);
tree_version = 1;
physics_process_time = 1;
idle_process_time = 1;