summaryrefslogtreecommitdiff
path: root/editor/plugins
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2023-01-21 22:49:06 +0100
committerkobewi <kobewi4e@gmail.com>2023-01-22 00:20:45 +0100
commit4ae168eb040404a297b326e07c30c3871be923de (patch)
tree3ead249fa9f232b63f554912f225252caccc3798 /editor/plugins
parenta6ddee9c00f76792632f43938a2c881cd9308e16 (diff)
Rework EditorPlugin editing logic
Diffstat (limited to 'editor/plugins')
-rw-r--r--editor/plugins/shader_editor_plugin.cpp4
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);