From d1d8f8505e2bd5a7acb0bdf487850aa9c6bd8785 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 2 Sep 2023 12:56:02 +0200 Subject: [PATCH] Backported from godot4: Strip name prefix of navigation agent debug properties in the inspector. - timothyqiu https://github.com/godotengine/godot/commit/65223e98de7504e61b414ff3858c5a2347acae56 --- scene/2d/navigation_agent_2d.cpp | 2 +- scene/3d/navigation_agent.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scene/2d/navigation_agent_2d.cpp b/scene/2d/navigation_agent_2d.cpp index 1b3d15f18..0b37844d9 100644 --- a/scene/2d/navigation_agent_2d.cpp +++ b/scene/2d/navigation_agent_2d.cpp @@ -154,7 +154,7 @@ void NavigationAgent2D::_bind_methods() { ClassDB::bind_method(D_METHOD("_navigation_debug_changed"), &NavigationAgent2D::_navigation_debug_changed); #endif - ADD_GROUP("Debug", ""); + ADD_GROUP("Debug", "debug_"); ADD_PROPERTY(PropertyInfo(Variant::BOOL, "debug_enabled"), "set_debug_enabled", "get_debug_enabled"); ADD_PROPERTY(PropertyInfo(Variant::BOOL, "debug_use_custom"), "set_debug_use_custom", "get_debug_use_custom"); ADD_PROPERTY(PropertyInfo(Variant::COLOR, "debug_path_custom_color"), "set_debug_path_custom_color", "get_debug_path_custom_color"); diff --git a/scene/3d/navigation_agent.cpp b/scene/3d/navigation_agent.cpp index 55bbfd4a9..4400b756b 100644 --- a/scene/3d/navigation_agent.cpp +++ b/scene/3d/navigation_agent.cpp @@ -166,7 +166,7 @@ void NavigationAgent::_bind_methods() { ClassDB::bind_method(D_METHOD("get_debug_path_custom_point_size"), &NavigationAgent::get_debug_path_custom_point_size); ClassDB::bind_method(D_METHOD("_navigation_debug_changed"), &NavigationAgent::_navigation_debug_changed); - ADD_GROUP("Debug", ""); + ADD_GROUP("Debug", "debug_"); ADD_PROPERTY(PropertyInfo(Variant::BOOL, "debug_enabled"), "set_debug_enabled", "get_debug_enabled"); ADD_PROPERTY(PropertyInfo(Variant::BOOL, "debug_use_custom"), "set_debug_use_custom", "get_debug_use_custom"); ADD_PROPERTY(PropertyInfo(Variant::COLOR, "debug_path_custom_color"), "set_debug_path_custom_color", "get_debug_path_custom_color");