diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2022-06-20 15:27:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-20 15:27:16 +0200 |
| commit | b4804a2d3fe0989b236aaac6c809fe86f18a7139 (patch) | |
| tree | 4e606a809cf2b7495dee795f74f391d248512465 /editor/plugins/script_editor_plugin.cpp | |
| parent | 21b0c7fc226ad9e9054e526656e9d63b09f4e010 (diff) | |
| parent | 73c102f2720ae898425b40ac4ccbc278a967f6c9 (diff) | |
| download | redot-engine-b4804a2d3fe0989b236aaac6c809fe86f18a7139.tar.gz | |
Merge pull request #61459 from reduz/new-shader-editor
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
| -rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index b9d99fcc93..6ab2366a44 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); |
