1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-19 14:31:59 +00:00

Fix visual shader items not applying the correct theme components

This commit is contained in:
Michael Alexsander
2025-11-02 13:59:37 -03:00
parent 0fdbf050e0
commit e0cb03a371

View File

@@ -174,7 +174,9 @@ void ShaderEditorPlugin::edit(Object *p_object) {
} else {
es.shader_editor = memnew(TextShaderEditor);
}
es.shader_editor->edit_shader(es.shader);
// 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);
}
// TextShaderEditor-specific setup code.