Merge pull request #80517 from YuriSizov/tsa-randomly-picked-you-for-mandatory-inspection-i-think-not

Avoid unnecessary inspector updates when loading or switching scenes
This commit is contained in:
Rémi Verschelde 2023-08-28 12:05:06 +02:00
commit 0655a7d7d3
No known key found for this signature in database
GPG key ID: C3336907360768E1
19 changed files with 102 additions and 93 deletions

View file

@ -6544,7 +6544,7 @@ void EditorPropertyVisualShaderMode::_option_selected(int p_which) {
return;
}
ShaderEditorPlugin *shader_editor = Object::cast_to<ShaderEditorPlugin>(EditorNode::get_singleton()->get_editor_data().get_editor("Shader"));
ShaderEditorPlugin *shader_editor = Object::cast_to<ShaderEditorPlugin>(EditorNode::get_editor_data().get_editor_by_name("Shader"));
if (!shader_editor) {
return;
}