Fix Class Reference request from Inspector

This commit is contained in:
neikeq 2015-11-25 00:08:39 +01:00
parent bfe8df27bc
commit 06957a8026
2 changed files with 2 additions and 1 deletions

View File

@ -1350,7 +1350,6 @@ void EditorHelp::_notification(int p_what) {
// forward->set_icon(get_icon("Forward","EditorIcons")); // forward->set_icon(get_icon("Forward","EditorIcons"));
// back->set_icon(get_icon("Back","EditorIcons")); // back->set_icon(get_icon("Back","EditorIcons"));
_update_doc(); _update_doc();
editor->connect("request_help",this,"_request_help");
} break; } break;
} }

View File

@ -1388,6 +1388,7 @@ void ScriptEditor::_notification(int p_what) {
if (p_what==NOTIFICATION_READY) { if (p_what==NOTIFICATION_READY) {
get_tree()->connect("tree_changed",this,"_tree_changed"); get_tree()->connect("tree_changed",this,"_tree_changed");
editor->connect("request_help",this,"_request_help");
} }
if (p_what==NOTIFICATION_EXIT_TREE) { if (p_what==NOTIFICATION_EXIT_TREE) {
@ -2205,6 +2206,7 @@ void ScriptEditor::_bind_methods() {
ObjectTypeDB::bind_method("_script_split_dragged",&ScriptEditor::_script_split_dragged); ObjectTypeDB::bind_method("_script_split_dragged",&ScriptEditor::_script_split_dragged);
ObjectTypeDB::bind_method("_help_class_open",&ScriptEditor::_help_class_open); ObjectTypeDB::bind_method("_help_class_open",&ScriptEditor::_help_class_open);
ObjectTypeDB::bind_method("_help_class_goto",&ScriptEditor::_help_class_goto); ObjectTypeDB::bind_method("_help_class_goto",&ScriptEditor::_help_class_goto);
ObjectTypeDB::bind_method("_request_help",&ScriptEditor::_help_class_open);
ObjectTypeDB::bind_method("_history_forward",&ScriptEditor::_history_forward); ObjectTypeDB::bind_method("_history_forward",&ScriptEditor::_history_forward);
ObjectTypeDB::bind_method("_history_back",&ScriptEditor::_history_back); ObjectTypeDB::bind_method("_history_back",&ScriptEditor::_history_back);
} }