mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Revert "Fix visual shader items not applying the correct theme components"
This reverts commit e0cb03a371.
This causes a crash when opening the editor with the shader editor pre-opened in the layout.
This commit is contained in:
parent
90659c1a72
commit
5d6ea08a67
1 changed files with 1 additions and 3 deletions
|
|
@ -174,9 +174,7 @@ void ShaderEditorPlugin::edit(Object *p_object) {
|
||||||
} else {
|
} else {
|
||||||
es.shader_editor = memnew(TextShaderEditor);
|
es.shader_editor = memnew(TextShaderEditor);
|
||||||
}
|
}
|
||||||
// Needs to be deferred so it's called after entering the scene tree,
|
es.shader_editor->edit_shader(es.shader);
|
||||||
// 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.
|
// TextShaderEditor-specific setup code.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue