mirror of
https://github.com/godotengine/godot.git
synced 2025-10-25 10:44:26 +00:00
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).
This commit is contained in:
parent
2e8862887c
commit
73c102f272
6 changed files with 230 additions and 84 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue