We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f9eb98d + 5d6ea08 commit 630938aCopy full SHA for 630938a
editor/shader/shader_editor_plugin.cpp
@@ -174,9 +174,7 @@ void ShaderEditorPlugin::edit(Object *p_object) {
174
} else {
175
es.shader_editor = memnew(TextShaderEditor);
176
}
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);
+ es.shader_editor->edit_shader(es.shader);
180
181
182
// TextShaderEditor-specific setup code.
0 commit comments