diff options
author | kobewi <kobewi4e@gmail.com> | 2023-01-21 22:49:06 +0100 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2023-01-22 00:20:45 +0100 |
commit | 4ae168eb040404a297b326e07c30c3871be923de (patch) | |
tree | 3ead249fa9f232b63f554912f225252caccc3798 /editor/plugins | |
parent | a6ddee9c00f76792632f43938a2c881cd9308e16 (diff) |
Rework EditorPlugin editing logic
Diffstat (limited to 'editor/plugins')
-rw-r--r-- | editor/plugins/shader_editor_plugin.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/plugins/shader_editor_plugin.cpp b/editor/plugins/shader_editor_plugin.cpp index 87d602ccf1..eed29d2ac0 100644 --- a/editor/plugins/shader_editor_plugin.cpp +++ b/editor/plugins/shader_editor_plugin.cpp @@ -117,6 +117,10 @@ void ShaderEditorPlugin::_move_shader_tab(int p_from, int p_to) { } void ShaderEditorPlugin::edit(Object *p_object) { + if (!p_object) { + return; + } + EditedShader es; ShaderInclude *si = Object::cast_to<ShaderInclude>(p_object); |