Skip to content

Commit 5d6ea08

Browse files
committed
Revert "Fix visual shader items not applying the correct theme components"
This reverts commit e0cb03a. This causes a crash when opening the editor with the shader editor pre-opened in the layout.
1 parent 90659c1 commit 5d6ea08

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

editor/shader/shader_editor_plugin.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,7 @@ void ShaderEditorPlugin::edit(Object *p_object) {
174174
} else {
175175
es.shader_editor = memnew(TextShaderEditor);
176176
}
177-
// Needs to be deferred so it's called after entering the scene tree,
178-
// otherwise it won't be able to correctly fetch the editor theme.
179-
callable_mp(es.shader_editor, &ShaderEditor::edit_shader).call_deferred(es.shader);
177+
es.shader_editor->edit_shader(es.shader);
180178
}
181179

182180
// TextShaderEditor-specific setup code.

0 commit comments

Comments
 (0)