From 5d6ea08a67d9e856597398c7a8a2c71ff0f69edc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Tue, 4 Nov 2025 10:26:37 +0100 Subject: [PATCH] Revert "Fix visual shader items not applying the correct theme components" This reverts commit e0cb03a3710e97d4f8b9201ceb1a36c7adac8eeb. This causes a crash when opening the editor with the shader editor pre-opened in the layout. --- editor/shader/shader_editor_plugin.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/editor/shader/shader_editor_plugin.cpp b/editor/shader/shader_editor_plugin.cpp index b32077520cf..12d4ef41171 100644 --- a/editor/shader/shader_editor_plugin.cpp +++ b/editor/shader/shader_editor_plugin.cpp @@ -174,9 +174,7 @@ void ShaderEditorPlugin::edit(Object *p_object) { } else { es.shader_editor = memnew(TextShaderEditor); } - // Needs to be deferred so it's called after entering the scene tree, - // otherwise it won't be able to correctly fetch the editor theme. - callable_mp(es.shader_editor, &ShaderEditor::edit_shader).call_deferred(es.shader); + es.shader_editor->edit_shader(es.shader); } // TextShaderEditor-specific setup code.