Skip to content

Commit 630938a

Browse files
committed
Merge pull request #112378 from akien-mga/revert-112322
Revert "Fix visual shader items not applying the correct theme components"
2 parents f9eb98d + 5d6ea08 commit 630938a

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)