aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/editor_help.cpp
diff options
context:
space:
mode:
authorneikeq2015-11-25 00:46:44 +0100
committerneikeq2015-11-25 00:46:44 +0100
commit8d97eef0fe634b8dba17d786123714fe83d5a4f8 (patch)
tree2882a9386aa59c593ad7ea8ba5b0b3697a7ac90b /tools/editor/editor_help.cpp
parent06957a8026bd20869fe11958d2cd8539c270354f (diff)
downloadgodot-8d97eef0fe634b8dba17d786123714fe83d5a4f8.tar.gz
godot-8d97eef0fe634b8dba17d786123714fe83d5a4f8.tar.zst
godot-8d97eef0fe634b8dba17d786123714fe83d5a4f8.zip
Put 2D, 3D and Script editor index in enum
To avoid invalid index out of bounds mistakes.
Diffstat (limited to 'tools/editor/editor_help.cpp')
-rw-r--r--tools/editor/editor_help.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/editor/editor_help.cpp b/tools/editor/editor_help.cpp
index e65b4df1d..901c86fa2 100644
--- a/tools/editor/editor_help.cpp
+++ b/tools/editor/editor_help.cpp
@@ -263,7 +263,7 @@ void EditorHelpSearch::_confirmed() {
String mdata=ti->get_metadata(0);
emit_signal("go_to_help",mdata);
- editor->call("_editor_select",2); // in case EditorHelpSearch beeen invoked on top of other editor window
+ editor->call("_editor_select",EditorNode::EDITOR_SCRIPT); // in case EditorHelpSearch beeen invoked on top of other editor window
// go to that
hide();
}
@@ -1049,7 +1049,7 @@ Error EditorHelp::_goto_desc(const String& p_class,int p_vscr) {
void EditorHelp::_request_help(const String& p_string) {
Error err = _goto_desc(p_string);
if (err==OK) {
- editor->call("_editor_select",2);
+ editor->call("_editor_select",EditorNode::EDITOR_SCRIPT);
}
//100 palabras
}