summaryrefslogtreecommitdiffstats
path: root/editor/plugins/visual_shader_editor_plugin.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-08-28 12:05:06 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-08-28 12:05:06 +0200
commit0655a7d7d3c9c682d7e04e276e4c7c5f6f592bfa (patch)
treef73b566248f3d339083ef19901d89bc81d6dd968 /editor/plugins/visual_shader_editor_plugin.cpp
parent2967084fe3ef939dffa71adf966a587f695fa7bc (diff)
parent2445414aa0a1c84b0894a61c1157cc5bee347b4a (diff)
downloadredot-engine-0655a7d7d3c9c682d7e04e276e4c7c5f6f592bfa.tar.gz
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
Diffstat (limited to 'editor/plugins/visual_shader_editor_plugin.cpp')
-rw-r--r--editor/plugins/visual_shader_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/visual_shader_editor_plugin.cpp b/editor/plugins/visual_shader_editor_plugin.cpp
index 76f19d2dff..330a9a36eb 100644
--- a/editor/plugins/visual_shader_editor_plugin.cpp
+++ b/editor/plugins/visual_shader_editor_plugin.cpp
@@ -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;
}