summaryrefslogtreecommitdiffstats
path: root/editor/plugins/script_editor_plugin.cpp
diff options
context:
space:
mode:
authorreduz <reduzio@gmail.com>2022-05-27 11:02:55 +0200
committerreduz <reduzio@gmail.com>2022-05-28 11:03:16 +0200
commit73c102f2720ae898425b40ac4ccbc278a967f6c9 (patch)
tree72a8ffff07390594efff3e2a548292ad2fb2e527 /editor/plugins/script_editor_plugin.cpp
parent2e8862887c07708ea0d4cb015902c3001ea6f495 (diff)
downloadredot-engine-73c102f2720ae898425b40ac4ccbc278a967f6c9.tar.gz
Redo the shader editor
* Shader editor is permanent (no longer transient). * Can edit multiple files at the same time. Likely fixes many usability issues (please lend me a hand Bugsquad team to identify them).
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
-rw-r--r--editor/plugins/script_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp
index 99b810be44..49f2f1da10 100644
--- a/editor/plugins/script_editor_plugin.cpp
+++ b/editor/plugins/script_editor_plugin.cpp
@@ -3547,7 +3547,7 @@ void ScriptEditor::_on_find_in_files_result_selected(String fpath, int line_numb
ShaderEditorPlugin *shader_editor = Object::cast_to<ShaderEditorPlugin>(EditorNode::get_singleton()->get_editor_data().get_editor("Shader"));
shader_editor->edit(res.ptr());
shader_editor->make_visible(true);
- shader_editor->get_shader_editor()->goto_line_selection(line_number - 1, begin, end);
+ shader_editor->get_shader_editor(res)->goto_line_selection(line_number - 1, begin, end);
return;
} else if (fpath.get_extension() == "tscn") {
EditorNode::get_singleton()->load_scene(fpath);